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

Compare with Current View Page History

Version 1 Current »

Syntax
set aBoolean = aString.convertToBoolean()
set aBoolean = convertToBoolean(LITERAL)
SemanticsconvertToBoolean() returns true if the string true is passed as parameter. false is returned for all other values. Alternatively, the figures 0 for false or 1 for true can be used as parameters.
If the conversion is not possible, an error message is raised (for instance: NULL strings).
SubstitutablesaString Can be any variable or object attribute having the type String.  
LITERAL String literal.
Examples
set aBoolean = aString.convertToBoolean(); 
  • No labels