SetErrorLine Method

This member of RFError Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The SetErrorLine method lets you define the specific text and display row for an error message.

VB

bStatus = object.SetErrorLine (pszText, nRow)

VC++

HRESULT hr = object->SetErrorLine(LPCTSTR pszText, short nRow, BOOL *bStatus);

Return Value

bStatus

The status of the function returned as Boolean True or False values.

Parameters

pszText

The text for the line of an error message.

nRow

The device row in which the error message should appear. The first device row is zero (0).

Remarks

Once defined, an error message will remain within an RFError object until either the object is released, a new message is defined over an existing line of error message using SetErrorLine, or all message lines are cleared using ClearError Method. This allows you to use a single error object within your application that may be modified for each error message rather than creating a new error object for each individual error message.

Example

See the Display Method.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal