vf_long()

Validates the data entered into an F_LONG field

Call
#include <vv_long.h>
int vf_long(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 long integer field to validate
UCHAR *cvbufp Pointer to conversion buffer
Returns
1 The data is valid for this F_LONG field.
0 The data is invalid for this F_LONG field.
Description

vf_long() performs several validation checks on the data. If the data does not pass a validation check, VAL_ERR is set. The form editor will then display the appropriate message. The following table lists the validation checks and the message displayed in the error window if the check fails.

vf_long() checks for: Message:
Decimal separator(s) NO_DECPOINT
Exponential notation symbol (E) NO_EXP
Multiple signs MULT_SIGN
Embedded signs SIGN_FIRST
Embedded blanks (accepted between sign NO_BLANKS
and first digit)  
The value is outside the range specified for OUTOFRANGE
this field or is too large or small to convert  
to a long integer.  
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_req(), vf_st(), vf_time()


Home Contents Previous Next