| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > FileManager > FileManager Methods >====== ValidateFields (validate a range of fields) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[validatefield validate a field .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[validatefieldserver validate field contents .htm|{{btn_next_n.gif|Next page}}]] | | || **ValidateFields( **//firstfield, lastfield //[//,failed//]// //**), VIRTUAL, PROTECTED, PROC** {{blk2blue.jpg|blk2blue.jpg}} | **ValidateField** | Validates the specified range of fields in the current record buffer and returns a success or failure indicator. | | //firstfield// | A numeric constant, variable, EQUATE, or expression that identifies the first field to validate by its position in the FILE declaration. A value of one (1) indicates the first field, two (2) indicates the second field, etc. | | //lastfield// | A numeric constant, variable, EQUATE, or expression that identifies the last field to validate by its position in the FILE declaration. A value of one (1) indicates the first field, two (2) indicates the second field, etc. | | //failed// | A signed numeric variable that receives the identifier of the field that failed the validation process. A value of one (1) indicates the first field, two (2) indicates the second field, etc. If omitted, the calling procedure gets no indication of which field failed the validation process. | The **ValidateField **method validates the specified range of fields in the current record buffer and returns a success or failure indicator, and otionally identifies the field that failed the validation process. **Implementation:** The ValidateFields method invokes the ValidateField method for each field in the range //firstfield //to //lastfield//. **Return Data Type:**     BYTE **See Also:**     [[validatefield validate a field .htm|ValidateField]]