QMTrapCallAbort

Top  Previous  Next

 

The QMTrapCallAbort function enables or disables client side trapping of aborts in QMCall.

 

 

Format

 

VBQMTrapCallAbort ByVal Mode as Boolean

 

Cvoid QMTrapCallAbort(int Mode)

 

ObjStr = Session->TrapCallAbort(Mode)

 

where

 

Modeevaluates to True or False.

 

 

By default, an abort occurring in a subroutine called using QMCall will display a message box (VB) or display a message. The QMTrapCallAbort function allows an application to trap the abort and take its own recovery action.

 

When call abort trapping is enabled, use of QMStatus() immediately after return from QMCall will return zero if the call ran successfully or non-zero if an abort occurred. The actual abort message can be retrieved using QMError().

 

When call abort trapping is not enabled, the value returned by QMStatus() after QMCall is the current STATUS() function value on the server.

 

When operating with multiple server connections from a single client, the state of call abort trapping applies to all connections

 

 

See also:

QMCall