/*------------------------------------------------------------*/ /* FLDFUNCS.C - Rev. VISIONS 1.20 */ /* */ /* This file contains examples of field validation routines. */ /*------------------------------------------------------------*/ /*-----------------------------------------------------------*/ /* IntOnly */ /* This is a field input validation routine. This routine */ /* requires that all input for its string field be integers. */ /* Leadings spaces are allowed. */ /*-----------------------------------------------------------*/ FLAG IntOnly(string) TEXT *string; { WORD leading_space = -1; /* Have not seen first digit. */ WORD i; for (i=0; i