Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : PERSISTENT attribute
 

PERSISTENT attribute

Indicates whether the procedure is persistent.
Data type: LOGICAL
Access: Readable/Writable
Applies to: Call object handle, Procedure object handle, SOURCE-PROCEDURE system handle, TARGET-PROCEDURE system handle, THIS-PROCEDURE system handle
The PERSISTENT attribute is TRUE when the RUN statement that executes a procedure is invoked with the PERSISTENT option. Otherwise, it is FALSE.
When a dynamic invoke returns and PERSISTENT is TRUE, the IN-HANDLE attribute contains a handle to the running persistent procedure.
When a Windows DLL or UNIX shared library is invoked dynamically and PERSISTENT is TRUE, the DLL or shared library remains loaded in memory until the AVM exits or the session executes the RELEASE EXTERNAL statement
Returns TRUE for a Web service procedure.
If a procedure has already been invoked with PROCEDURE-TYPE set to "PERSISTENT", then PERSISTENT will automatically be set to TRUE. Setting PERSISTENT to TRUE when PROCEDURE-TYPE has already been set as "SINGLE-RUN" or "SINGLETON" will result in a run-time error.

See also

IN-HANDLE attribute, INVOKE( ) method (Handle), PROCEDURE-TYPE attribute, RELEASE EXTERNAL statement, RUN statement