User Tools

Site Tools


validatefields_validate_a_range_of_fields_.htm
Navigation:  ABC Library Reference > FileManager > FileManager Methods >====== ValidateFields (validate a range of fields) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ValidateFields( firstfield, lastfield [,failed] ), VIRTUAL, PROTECTED, PROC

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

validatefields_validate_a_range_of_fields_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1