Lasso Soft Inc. > Home

[ pair->asString ]

Method

The [pair->asString] method outputs a pair object as a string object. This method is used mostly for debugging purposes.

  • Syntax
pair->asString
Examples
  • Beginner

Display a pair as a string

Use the [pair->asString] method. As this example shows, even though the outputs look the same, they are different.

Code

var( aPair = pair('First', 'Second') )
var( aString = $aPair->asString )

'aPair: '+$aPair+' is type '+$aPair->type+'\n'
'aString: '+$aString+' is type '+$aString->type

Result

aPair: (First = Second) is type pair
aString: (First = Second) 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 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft