LastErrorString

LastErrorString specifies the error string for the last runtime error.

Syntax

[form.]Report.LastErrorString

For example:

'If error occurs, go to Error Handler
On Error GoTo ErrorHandler ErrorHandler:
    MsgBox CrystalReport1.LastErrorString

«If an error occurs, this code calls up a message box that displays the error string.»

Remarks

Note:    LastErrorString must come after the Action call in order to display relevant values. After you have printed your report, you can refer to this property to get an error string (if any). If there was no error in printing, LastErrorNumber = 0.

Data Type

String

Availability

Runtime

Related Report Engine Functions

PEGetErrorCode

PEGetErrorText



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com