vf_double()

Validates the data entered in an F_DOUBLE field

Call
#include <vv_doubl.h>
int vf_double(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 floating point field to validate
UCHAR *cvbufp Pointer to conversion buffer
Returns
1 The data is valid for this F_DOUBLE field.
0 The data is invalid for this F_DOUBLE field
Description

vf_double() 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_double() checks for: Message:
Multiple decimal separators MULT_POINTS
Decimal separators in the exponent POINTINEXP
Multiple signs (for exponential notation, signs can occur in both the mantissa and the exponent) MULT_SIGN
Multiple exponential notation symbols (E) MULT_EXP
Embedded signs SIGN_FIRST
Field value too large to allow right justification NO_RTJUST
Embedded blanks (accepted between sign and first digit) NO_BLANKS
Value is outside the range specified for this field or value exceeds maximum double for the operating system OUTOFRANGE
If CHKTRUNCATE is ON for the field, values that cannot be redisplayed without losing precision FLOATTRUNCATE
Vermont Views validation messages are defined in vv_valmsg.c.
Related Functions

vf_bool(), vf_ch(), vf_date(), vf_dec(), vf_fill(), vf_int(), vf_long(), vf_req(), vf_st(), vf_time()


Home Contents Previous Next