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.convertToBoolean()
set aBoolean = convertToBoolean(LITERAL)
Semantics

convertToBoolean()

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)

converts a given string into a Boolean.

Output BooleanInput StringRemark
truetruecase sensitive
1
falsefalsecase sensitive
0

All other conversions are illegal and will raise an error.

SubstitutablesaString Can be any variable or object attribute having the type String.  
LITERAL String literal.
Error CodesFind the related error codes on System Errors of type conversion operations.
FUTSM/3Illegal conversion
Examples
Code Block
languagenone
set aBoolean = aString.convertToBoolean();