Character Fields

The specifics for using character fields are summarized below:

Field Type F_CHAR
Header File vv_char.h
Data Variable UCHAR data
Picture Control Any picture control character is allowed. You can have as many protected characters as you desire, but there must be only one picture control character.
Code Example UCHAR choice = ' ';

fldp = fld_def(3, 5, "Enter choice (A, B, C, D): ",
FADJACENT, "!", F_CHAR, (PTR)&choice, dfmp);

  The field display will initially show a space, because this is the initial value of choice. The picture specifies that the entered character be converted to upper case. You can ensure that the user enters one of the specified characters by specifying the valid range for the field to be 'A' to 'D'.


Home Contents Previous Next