Lasso Soft Inc. > Home

[ map->asString ]

Method

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

  • Syntax
map->asString
Examples
  • Beginner

Convert an object of map type to string type

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

Code

var( People_Map = map('President' = 'John Doe',
                     'Vice President' = 'Jane Doe', 
                     'Treasurer' = 'Joe Surname', 
                     'Secretary' = 'John Doe') )

var( People_String = $People_Map->asString )

'People_Map: '+$People_Map+', is type: ' + $People_Map->type + '\n'

'People_String: '+$People_String+', is type: ' + $People_String->type

Result

People_Map: map(President = John Doe, Secretary = John Doe, Treasurer = Joe Surname, Vice President = Jane Doe), is type: map
People_String: map(President = John Doe, Secretary = John Doe, Treasurer = Joe Surname, Vice President = Jane Doe), 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