lnError
The error number
lLogOnly
If this is False and the object is created as an out of process exe then an error dialog box will
appear. If this is True then the dialog box will not appear
Else
This function will set o.lError to True and place the contents of lcErrorMsg into o.cErrorMsg.
It will also log the errorlog to the configured log file. Using o.SetError() without
parameters will reset o.lError to False and o.cErrorMsg to blank.
Although this is developed for internal use by the application you may use it to log your own errors
to log file.
o.SetError("File not Found", 120)
This would;
Place "File not Found" into o.cErrorMsg
Set o.oData To.lError to True
Log both these along with the error number into the error log file