String Fields

The specifics for using string fields are summarized below:

Field Type F_STRING
Header File vv_str.h
Data Variable UCHAR * data or UCHAR data[ ]

The data variable must be allocated and initialized. The variable must be long enough to hold the string entered in the field plus a null terminator, or memory will be corrupted.

Picture Control All picture control characters are allowed. If you want full text editing, do not mix picture control characters.
Code Example UCHAR quote[61];
UCHAR *pic_quote;

pic_quote = pic_def('X', 60);
fldp = fld_def(1, 1, "Quotation: ", FADJACENT, pic_quote,
F_STRING, quote, dfmp);
   
   
   
   
   


Home Contents Previous Next