Lasso Soft Inc. > Home

[ array->asstaticarray ]

Method

The array->asstaticarray method converts a variable of type array to one of type staticarray.

  • Syntax
array->asstaticarray
Examples
  • Beginner

Convert an array type to a staticarray type.

Convert an array containing the days of the week to a staticarray.

Code

var( DaysOfWeek = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') )
var( StaticDaysOfWeek = $DaysOfWeek->asstaticarray )

'DaysOfWeek is type '+$DaysOfWeek->type
'StaticDaysOfWeek is type '+$StaticDaysOfWeek->type

Result

DaysOfWeek is type array
StaticDaysOfWeek is type staticarray

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 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft