|
Purpose |
Changes the field attributes in next screen function call | ||
|
Old name |
#define force_scrn field_force_size | ||
|
Syntax |
void field_force_size(field_length, occurs, | ||
|
Parameters |
int field_length |
New field length to be used | |
|
|
int occurs |
The number of occurrences the field should have | |
|
|
int precision |
The precision of the field to be used | |
|
|
int scalefactor |
The scale factor to be used | |
|
|
char* alphabet |
Null-terminated string of valid input characters | |
|
|
The set of acceptable characters for the functions askf_c and askf_u is restricted to those in the parameter alphabet. A value of NULL_SHORT for any of the field attributes causes the default value from the map to be used. An empty string ("") for the parameter alphabet means that any characters are allowed. | ||
|
Description |
The function field_force_size() forces the next call to one of the show_x(), askf_x() or field_blank() functions to use the specified field attributes instead of taking them from the map. Note this function affects only the next call and not subsequent ones. | ||
|
Example |
| ||