Lasso Soft Inc. > Home

[ staticarray->asString ]

Method

Outputs the staticarray as a string. This method is used for debugging purposes.

  • Syntax
staticarray->asString
Examples
  • Beginner

Convert a variable of staticarray type to string type

As this example shows, even though the outputs look the same, they are different.

Code

var( daysOfWeek = staticarray( 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') )
 
var (dayString = $daysOfWeek->asString)
'daysOfWeek: '+$daysOfWeek+' is type '+$daysOfWeek->type+'\n'
'dayString: '+$dayString+' is type '+$dayString->type

Result

daysOfWeek: staticarray(Sun, Mon, Tue, Wed, Thu, Fri, Sat) is type staticarray
dayString: staticarray(Sun, Mon, Tue, Wed, Thu, Fri, Sat) is type string

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft