Page tree
Skip to end of metadata
Go to start of metadata
Syntax
set aSubstring = aString.substring(startIndex, length)
set aSubstring = substring(LITERAL, startIndex, length)
SemanticsExtracts a substring of a given length beginning at position startIndex. Returns a new string. The state of the current string is not changed. If length is greater than the length of aString, an error is raised.
Substitutables

aStringCan be any variable or object attribute having the type String.  
startIndex, lengthCan be any variable or object attribute having the type Integer.
LITERALString literal.
Examples
set aSubstring = stringSet.s1.substring(0, 2);
  • No labels