Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Syntax
Code Block
languagenone
set aBoolean = aString.endsWith(LITERAL)
set aBoolean = aString.endsWith(anotherString)
Semantics endsWith() returns true, if the string aString ends with the string represented by the literal or anotherString. In all other cases, false is returned.
SubstitutablesaBoolean Can be any variable or object attribute having the type Boolean.  
aString, anotherString
Can be any variable or object attribute having the type String.
LITERAL String literal.
Examples
Code Block
languagenone
set aBoolean = aString.endsWith("str"); 
set aBoolean2 = aString1.endsWith(aString2.substring(0, 3));