vf_fill()

Validates fields that have the FILL option

Call
#include <vv_form.h>
int vf_fill(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 field with the FILL option ON
UCHAR *cvbufp Pointer to conversion buffer
Returns
1 The field is completely filled.
0 The field is not completely filled.
Description

vf_fill() determines if the entry completely fills the field by checking the string for blanks. If any non-blank character appears in the string and the last character in the field is a blank, the field fails the validation test. If the string is all blanks, the field passes the test. Embedded blanks are allowed.

If the field fails, VAL_ERR is set to NOT_FILLED. The form editor then displays the appropriate message. Vermont Views validation messages are defined in vv_valmsg.c.

Related Functions

vf_bool(), vf_date(), vf_dec(), vf_double(), vf_int(), vf_long(), vf_req(), vf_time()

Cautions

Blanks appearing in the picture as protected characters are not considered.


Home Contents Previous Next