Boolean Data Type

Siebel VB does not include a Boolean data type. It considers 0 to be FALSE and any other numeric value to be TRUE. You can write code that uses only a numeric value as a Boolean value. A comparison expression always returns 0 for FALSE and -1 (negative one) for TRUE. You can use the following values in an integer variable to simulate a Boolean data type:

  • To represent TRUE. A value of 1 or any number that is not zero.

  • To represent FALSE. A value of 0.

If you must call a field from a script, and if this field is a DTYPE_BOOL type field, then you must declare it as a string.