FieldValidate event

This event fires when a field is about to be validated. It fires at least once for each field and can fire several times if the field value is edited and validated repeatedly.

In the Interpret module, this event can be fired several times for a field while incomplete invoice definition fields are validated. In these cases, the fields are merely proposals.

Note Because this event is fired before ReadSoft Invoices's internal validation, ReadSoft Invoices could reset changes your code makes. You can use evtOKAbort to skip ReadSoft Invoices's validation, but we recommend using the FieldComplete and InvoiceComplete events for validation instead.

Syntax

Public Function FieldValidate() As Long

None.

evtOK

Normal return

evtOKAbort

Causes the internal field validation to be skipped.

evtCancel

Causes an error message and job termination.

evtError

Causes an error message and job termination.

Could be used to implement specific field validations that cannot be performed by ReadSoft Invoices.