rp_data::seterror



o.seterror()

Return Value

True or False

Parameters

lcErrorMsg
The error message to log

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

Remarks

If you issue this method with any parameters then it will clear existing error messages

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.

Example

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

See also:

Class rp_data


Last Updated: 23/11/2005