PalStrToBoolean

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean PalStrToBoolean( SalString sTrue )

The PalStrToBoolean method the strings 'TRUE' and 'FALSE' to the corresponding Salboolean value.

Parameters

Name Description
SalString sTrue SalString who's value should be converted to Salboolean representation.

Returns

The return value is TRUE if the string 'TRUE' is passed as a parameter, FALSE otherwise.

Example

Set bTemp = PalStrToBoolean( 'TRUE' )
! bTemp is now TRUE
bValue = Int.PalStrToBoolean("true"); 
//bValue is now true