LastErrorNumber

LastErrorNumber specifies the error code for the last runtime error.

Syntax

[form.]Report.LastErrorNumber

For example:

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

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

Remarks

Note:    LastErrorNumber 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 number (if any). If there was no error in printing, LastErrorNumber = 0.

Data Type

Integer

Availability

Runtime

Related Report Engine Functions

PEGetErrorCode



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