IceCheck4Err() |
This function will display the passed message and associated error details if "err.number" is not 0. This function will return "err.number" so if a non-zero value is returned you will frequently want to abort processing.
This function takes these parameters:
EXAMPLE |
Please see the "Sample Validation Suite" section for complex examples, a small fragment follows:
;========================================================================= function IceViewFetch(ByRef oView) ;========================================================================= on error resume next set IceViewFetch = oView.Fetch() if IceCheck4Err("Fetching a record") <> 0 then set IceViewFetch = Nothing end if end function