Lasso Soft Inc. > Home

[ string->isWhitespace ]

Method

[String->IsWhiteSpace] checks whether a specified character within the string is white space. Accepts an optional integer parameter for the position of the character in the string to check, defaulting to the first character if omitted. The method returns True if the character is white space or False otherwise.

  • Syntax
'String Object'->iswhitespace
'String Object'->iswhitespace(Integer)
Examples
  • Beginner

To check whether a character is white space:

Use the [String->IsSpace] method. The following example returns True since the fourth character of the string is a white space character (space, tab, return, or other white space character).

Code

'The quick white rhino'->iswhitespace(4)

Result

true

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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft