The [String->Integer] method returns the ASCII integer value of a single character. This method accepts an optional integer parameter representing the position of a character in a string object, and returns the ASCII integer value.
String Object->Integer
String Object->Integer(Position)
Use the [String->Integer] method. The first example returns the ASCII integer value of a single character "A", or 65. The second example returns the ASCII integer value of a single character "a", or 97. Note that ASCII representations are case-sensitive.
Code
'A'->integer
'Happy Day'->integer(2)
Result
65 97
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments