Progress
Version 9
Product Update Bulletin


CALL-TYPE Attribute

The type of call, which must be the dynamic version of one of the following:

Data Type: INTEGER

Access: Readable/Writable

Applies To: CALL Object

You can use a keyword constant or an integer. Table D–3 lists the keyword constants and integers you can use.

Table D–3: Keyword Constants For the CALL-TYPE Attribute
Keyword Constant
Integer
PROCEDURE-CALL-TYPE
1
FUNCTION-CALL-TYPE
2
GET-ATTR-CALL-TYPE
3
SET-ATTR-CALL-TYPE
4

The default is PROCEDURE-CALL-TYPE.

To get the value of an attribute or to invoke a method, set CALL-TYPE to GET-ATTR-CALL-TYPE.

To set the value of object:attribute to the first parameter set by the SET-PARAMETER() method, set CALL-TYPE to SET-ATTR-CALL-TYPE, as in the following fragment:

/* set SESSION:NUMERIC-FORMAT to "european" */ 
hCall:IN-HANDLE = "session". 
HCALL:CALL-TYPE = SET-ATTR-CALL-TYPE. 
hCall:CALL-NAME = "numeric-format". 
hCall:NUM-PARAMETERS = 1. 
hCall:SET-PARAMETER( 1, "CHAR", "INPUT", "european"). 
hCall:INVOKE. 


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