ON QUIT phrase
Describes the processing that occurs when a QUIT statement is executed during a block. By default, the QUIT statement saves the current transaction and then returns to the operating system or to the tool from which the routine was invoked (such as the OpenEdge Editor).
Note: Does not apply to SpeedScript programming.Syntax
UNDO [label1
]LEAVE [label2
]NEXT [label2
]RETRY [label1
]RETURN ...
Returns to the calling routine, or if there is no calling routine, returns to the OpenEdge Editor. The following table describes various RETURN cases:
Option Descriptionreturn-value
The CHARACTER string you provide is passed to the caller. The caller can use the RETURN-VALUE function to read the returned value. ERROR Raises ERROR in the caller and undoes the current subtransaction. ERRORreturn-value
Raises ERROR in the caller and undoes the current subtransaction. The CHARACTER string you provide is passed to the caller. The caller can use the RETURN-VALUE function to read the returned value.The AVM also creates anProgress.Lang.AppError
object and stores thereturn-value
in theReturnValue
property.Note: User-defined functions have different behavior since they must return the data type specified in the definition. See the "FUNCTION statement" section for more information. ERRORerror-object-expression
Raises ERROR in the caller and undoes the current subtransaction.The specified error object is created and populated according to your code. If this is anProgress.Lang.AppError
object, the caller can use the RETURN-VALUE function to read the setting of theReturnValue
property. NO-APPLY In a user-interface trigger, prevents the AVM from performing the default behavior for that event.You cannot specify ERROR within a user-interface trigger block or a destructor. You can specify the NO-APPLY option only within a user-interface trigger block.See alsoON ENDKEY phrase, ON ERROR phrase, ON STOP phrase, QUIT statement, RETURN statement, RETURN-VALUE function, UNDO statement
OpenEdge Release 10.2B
|