%HI_GetAXProp, %HI_SetAXProp functions


Function
The function %HI_SetAXProp sets the given variable to the value defined by the parameter value.

The function %HI_GetAXProp returns the value of the given variable.


Declaration
%HI_SetAXProp(
   INT in refID, 
   TEXT in variableName, 
        in value
 )
 
UNIVAL %HI_GetAXProp(
   INT in refID, 
   TEXT in variableName
 )

Parameters
refId Reference to ActiveX object (reference variable) or interface returned by calling the function HI_GetAXProp.
variableName Name of the variable to set/read.
value Value (of required type) to set.

Description
The function %HI_SetAXProp has no return value.
The function %HI_GetAXProp returns the value of the variable.
Example 1
In active picture, there is placed the ActiveX object of Calendar Control 8.0 type. The following call
 
 %HI_SetAXProp(_AX_CAL, "Year", 2004)

 
sets the year to 2004.
Example 2
In active picture, there is placed the ActiveX object of Calendar Control 8.0 type. The following call
 
 INT _i
 _i := %HI_GetAXProp(_AX_CAL, "Year")

 
returns the current year defined in the ActiveX object.
Napíšte komentár