QPR Knowledge Base

GetErrorMessage

Hide Navigation Pane

GetErrorMessage

Previous topic Next topic No expanding text in this topic  

GetErrorMessage

Previous topic Next topic JavaScript is required for expanding text Mail us feedback on this topic!  

Comments (...)

Revision history:

Introduced in QPR 7.2.1

 

Returns an error message for the operation in the case the operation failed.

 

Synopsis:

 

PGApplication.GetErrorMessage(viErrorCode)

 

Parameters:

 

viErrorcode: Integer, a code returned by any previously executed script function

 

Required Rights:

 

None.

 

Return Values:

Below are listed the return values that this function can return:

 

Error description (string).

 

Example Procedure:

If (iResult <> 0) Then

 MsgBox "Create file model 1 failed: " + PGApplication.GetErrorMessage(iResult)

End If

Comments (...)