Validates the data entered in an F_STRING field
| Call | |
| #include <vv_str.h> | |
| int vf_st(stp, picp, dfldp, cvbufp) | |
|
UCHAR *stp |
Pointer to the string containing the field data |
| UCHAR *picp | Pointer to the picture associated with the string |
| DFIELDPTR dfldp | Pointer to the string field to validate |
| UCHAR *cvbufp | Pointer to conversion buffer |
| Returns | |
| 1 | The data is valid for this F_STRING field. |
| 0 | The data is invalid for this F_STRING field. |
| Description
If a range was specified for the field, vf_st() checks that the string entered falls within the specified range. If the string does not lie within the specified range for the field, VAL_ERR is set to OUTOFRANGE. The form editor will then display the appropriate message. If no range is specified for the field, vf_st() does nothing. Vermont Views validation messages are defined in vv_valmsg.c. |
|
| Related Functions
vf_bool(), vf_ch(), vf_date(), vf_dec(), vf_fill(), vf_double(), vf_int(), vf_long(), vf_req(), vf_time() |
|