Lasso Soft Inc. > Home

[ staticarray->values ]

Method

The [staticarray->values] method returns a new staticarray containing all the values of the original in the same order.

  • Syntax
staticarray->values
Examples
  • Beginner

To return an exact copy of a static array

Use the [staticarray->values] method.

The following example creates a copy of a staticarray of days of the week.

Code

var( DaysOfWeek = staticarray('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') )

var( week2 = $DaysOfWeek->values )

$week2

Result

staticarray(Sun, Mon, Tue, Wed, Thu, Fri, Sat)

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