Validate
| Syntax | nNumErrors = CS.Validate (sErrorList) |
|---|---|
| Use to | Validate the current record, or records selected in a list, and return a list of validation errors, if any. Same as using the Edit > Validate menu command. |
| Parameters | Enter the parameter sErrorList to store a list of validation errors, if any. |
| Comments |
|
| Return values | An integer showing the number of validation errors.
Note: A return of -1 indicates that validation failed because of a system error. |
| Example | Sub Main()
Dim CS As Object CS.Search “WC”, “#1” ‘ Create 2 invalid fields ‘ Display all of the validation errors ‘ Display the errors individually While nIndex > 0 sErrorList = Mid(sErrorList, nIndex + 1) MsgBox sErrorList |
| What this example does |
|
