Integer fields, long integer fields, and short integer fields are almost identical. The only differences are (1) the data variable type: for integers it is int, for long integers it is long, and for short integers it is short, and (2) the validation functions check for the appropriate maximum values (see Chapter 9, "Data Field Processing Options.")
The specifics for using integer, long integer, and short integer fields are summarized below:
| Field Type | F_INT, F_LONG, F_SHORT |
| Header File | vv_int.h, vv_long.h, vv_short.h |
| Data Variable | int data, long data, short data |
| Picture Control | The picture control characters 9 and U are the only ones allowed in integer, short integer, and long integer fields. The restrictions for fields that are to be adjusted upon exit apply; therefore, the picture string cannot contain protected characters. |
| Code Example | int acres = 0;
fld_def(8, 1, "Land size (acres): ", FADJACENT, |