RFERROR.SetErrorLine

boolean SetErrorLine(BSTR pszLine, short nLine)

Function SetErrorLine(pszLine As String, nLine As Integer) As Boolean

Adds a text line to the error message array.

Return value
True=Successful, False=error, array size exceeded.

Parameters

pszLine
    Text line to display.

nLine
    Index (0 based) of the line in the display array.

Remarks
    Do not exceed the terminal height minus 2 lines (for "frame").

Example
Public wsRfError As New RFERROR
...
wsRfError.ClearError    ' Clean any previous error message
wsRfError.SetErrorLine " User Error ", 0
wsRfError.SetErrorLine " Message ", 1
wsRfError.Display 0     ' No time-out, CLR by user

See also    RFERROR, ClearError