Lasso Soft Inc. > Home

[ string->eachCharacter ]

Method

[string->eachCharacter] permits a query expression to be executed over all the characters in the string.

  • Syntax
with Local in 'String Value'->eachCharacter Query Expression
Examples
  • Beginner

To run a query expression over all the characters in a string:

Use the [string->eachCharacter] method. The following example takes a string and selects the characters within it.

Code

with char in 'The quick brown fox jumped the shark.'->eachCharacter select #char

Result

T, h, e,  , q, u, i, c, k,  , b, r, o, w, n,  , f, o, x,  , j, u, m, p, e, d,  , t, h, e,  , s, h, a, r, k, .

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