Try OpenEdge Now
Dynamic Call Object
Code examples
:
Getting an attribute
Getting an attribute
This example gets the current value of the
TITLE
attribute of a frame. The call object's
CALL-TYPE
attribute is set to
GET-ATTR-CALL-TYPE
. The value of the
TITLE
attribute is returned through the call object's
RETURN-VALUE
attribute, as shown:
/* Get title of frame */
ASSIGN
hCall:IN-HANDLE = myframe_handle
hCaLL:CALL-TYPE = GET-ATTR-CALL-TYPE
hCall:CALL-NAME = "TITLE".
hCall:INVOKE( ).
Mytitle = hCall:RETURN-VALUE.