Lasso Soft Inc. > Home

[ string->keys ]

Method

[string->keys] returns the keys of a string object. The keys are the indices or positions of each character within the string object.

  • Syntax
'String Object'->keys
Examples
  • Beginner

To return the keys of a string:

use the [string->keys] method. The following example returns the keys in the string object.

Code

'The quick white rhino'->keys

Result

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21

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