Progress
ADM 2 Reference


{get} and {set} Pseudo-functions

In addition to the conventional get and set functions, the ADM supports a pseudo-function syntax for use in super-procedure files particularly. These pseudo-functions are implemented by the include files get and set (not get.i or set.i) located in the tty and gui directories.

A call to {get} takes one of the following forms:

{get propname returnvar}. 
{get propname returnvar ownerhandle} 

Where propname is the property name in the TARGET-PROCEDURE object and returnvar is the variable into which the value is to be returned. If the property does not belong to the TARGET-PROCEDURE object, provide the appropriate handle in ownerhandle.

The {set} syntax is very similar:

{set propname newvalue} 
{set propname newvalue ownerhandle} 

The only difference between {get} and {set} syntax is that the second {set} argument is the new value for the property.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095