Field Validation Checks

Field Type System Validation Function Checks Performed
F_BOOL vf_bool() Allows only Boolean yes and no characters set for field, case insensitive.
F_CHAR vf_ch() Checks if character falls within allowed range, if one is specified
F_CHECK NONE NONE
F_DATE vf_date() Reformats date and checks that this date string matches the date format string specified for the field.
Checks for valid month (1-12) or a valid month string (e.g., May).
Checks for s day equal to zero.
Checks for valid day for given month (takes into account leap years).
Accepts completely blank date.
Checks if date falls within allowed range, if one is specified.
F_DECIMAL vf_dec() Checks for multiple decimal separatorss.
Checks for multiple signs.
Checks for embedded signs.
Checks for an exponential symbol (E).
Checks for embedded blanks (accepted between sign and first digit).
Checks for value that will overflow a long integer variable.
If CHKTRUNCATE is ON, checks if the value was entered with too many digits after the decimal separator.
Checks if the number falls within the allowed range, if one is specified.
F_SINGLE vf_double() Checks for multiple signs (for exponential notation
F_DOUBLE   signs can occur in both the mantissa and the exponent).
Checks for embedded signs.
Checks for embedded blanks (accepted between sign and first digit in mantissa or exponent).

Checks for multiple decimal separators.
Checks for decimal separator in exponent.
Checks for multiple exponential symbols (E).
Checks for exponent that will cause underflow or overflow.
If CHKTRUNCATE is ON, checks if value can be redisplayed without losing precision.
Checks if number falls within allowed range, if specified.

F_INT vf_int() Checks for multiple signs.
Checks for embedded signs.
Checks for decimal separator.
Checks for an exponential symbol (E).
Checks for embedded blanks (accepted between sign & first digit).
Checks for value that will overflow an integer variable.
Checks if number falls within allowed range, if specified
F_LONG vf_long() Checks for multiple signs.
Checks for embedded signs.
Checks for decimal separator.
Checks for exponential symbol (E).
Checks for embedded blanks (accepted between sign and first digit).
Checks for value that will overflow a long integer variable.
Checks if number falls within allowed range, if one is specified.
F_RADIO NONE NONE
F_SHORT vf_short() Checks for multiple signs.
Checks for embedded signs.
Checks for decimal separator.
Checks for exponential symbol (E).
Checks for embedded blanks (accepted between sign and first digit).
Checks for value that will overflow a short integer variable.
Checks if number falls within allowed range, if one is specified.
F_STRING vf_st() Checks if string falls within allowed range, if one is specified.
F_TIME vf_time() Reformats data in field and checks that this time follows the time format string specified for the field.
Checks that minutes are from 0 to 59

Checks that seconds are from 0 to 59.
If the 12-hour clock is in use, checks that hours are from 0 to 12.
Checks that the 12-hour indicators match the AM_STRING and PM_STRING in the array of informational messages.
Accepts completely blank time.
Checks if time falls within allowed range, if one is specified.








Home Contents Previous Next