Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : CALL-TYPE attribute
 

CALL-TYPE attribute

The type of call, which must be the dynamic version of one of the following:
*Invoking an external or internal procedure
*Invoking a user-defined function
*Invoking a Windows DLL routine or a Unix shared library routine
*Getting an attribute
*Setting an attribute
*Invoking a method
Data type: INTEGER
Access: Readable/Writable
Applies to: Call object handle
You can use a keyword constant or an integer. The following table lists the keyword constants and integer values you can use.
Table 67. Keyword constants for the CALL-TYPE attribute
Keyword constant
Integer value
PROCEDURE-CALL-TYPE
1
FUNCTION-CALL-TYPE
2
GET-ATTR-CALL-TYPE
3
SET-ATTR-CALL-TYPE
4
DLL-CALL-TYPE
5
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.
In this example, the SESSION:NUMERIC-FORMAT attribute is assigned, indicated by the CALL-TYPE value of SET-ATTR-CALL-TYPE:
/* Set SESSION:NUMERIC-FORMAT to "european" */

ASSIGN
  hCall:IN-HANDLE      = "session"
  hCall:CALL-TYPE      = SET-ATTR-CALL-TYPE
  hCall:CALL-NAME      = "numeric-format"
  hCall:NUM-PARAMETERS = 1.

hCall:SET-PARAMETER(1, "CHARACTER", "INPUT", "european").
hCall:INVOKE.
Note: PSC recommends that you do not set the call object's CALL-TYPE attribute to SET-ATTR-CALL-TYPE to set a BUFFER-FIELD object's BUFFER-VALUE attribute, since there is no way to run triggers for the target field.