Setting the Default Allowed Characters for All Boolean Fields

The system default values for allowed Boolean characters are 'y' and 'n' and are case insensitive. Thus, by default, any Boolean field will accept 'Y', 'y', 'N', or 'n' as valid input during data entry. You can change the default Boolean character set.

Designer: You cannot change the default characters for all Boolean fields using the Designer. If you call se_boolch() in your code, Boolean fields created in the Designer will not be affected.

Code: You can change the default allowed Boolean characters with the set environment Boolean character function, se_boolch():

void se_boolch(boolyes_ch, boolno_ch)

UCHAR boolyes_ch;        /* Character to accept for "yes" value        */

UCHAR boolno_ch;        /* Character to accept for "no" value        */

Boolean fields defined in code after making this call will be initialized to accept the specified allowed characters.


Home Contents Previous Next