ErrorDescription
This property sets or returns the reason if a script validation could not be performed.
Syntax
ErrorDescription as String
Sample Code
Private Sub Number_Validate(pField as SCBCdrField, pWorkdoc as SCBCdrWorkdoc, pValid as Boolean)
if pValid = FALSE then
'Standard validation returns invalid, stop here
exit sub
end if
'Perform additional check for number format
if IsValidNumber(pField) = FALSE then
pValid = FALSE
pField.ErrorDescription = "Field is not a valid number"
end if
End Sub