Progress
Version 9
Product Update Bulletin


Example 4 — Getting an Attribute

Example p-diexm4.p gets the current value of the TITLE attribute of a frame.

p-diexm4.p
/* get title of frame */ 
hCall:IN-HANDLE = myframe_handle. 
HCALL:CALL-TYPE = GET-ATTR-CALL-TYPE. 
hCall:CALL-NAME = "TITLE". 
hCall:INVOKE. 
Mytitle = hCall:RETURN-VALUE. 

In p-diexm4.p, CALL’s CALL-TYPE attribute is set to GET-ATTR-CALL-TYPE. The value of the TITLE attribute is returned thorough CALL’s RETURN-VALUE attribute.


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