Lasso Soft Inc. > Home

[ string->integer ]

Method

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.

  • Syntax
  • Methods
  • Traits
String Object->Integer

String Object->Integer(Position)
Has methods:
Examples
  • Beginner

To return the ASCII integer value of a single character:

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

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