You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Syntax
set aSubstring = aString.substringBefore(searchString)
set aSubstring = substringBefore(LITERAL, searchString)
SemanticsReturns the substring of aString before the first occurrence of searchString. Raises an error if the search string is not found.
SubstitutablesaString, searchString Can be any variable or object attribute having the type String.  
LITERAL String literal.
Examples
set aSubstring = s1.substringBefore ("world");
  • No labels