Server Reference Guide : C. ParamDesc and Params Structures : Call4GL Method
 
Share this page          
Call4GL Method
The Call4GL method executes specified 4GL procedures in the application that was initiated by the Initiate method.
HRESULT Call4GL
    (    
        [in] BSTR ProcName,
        [in, optional] VARIANT          * ByValParamDesc,
        [in, optional] VARIANT          * ByValParams,
        [in, optional] VARIANT          * ByRefParamDesc,
        [in, out, optional] VARIANT     * ByRefParams
    );
The Call4GL method takes four input parameters and one input/output parameter:
ProcName
Specifies the name of the 4GL procedure to call. Note that the application name is implicit, based on the image file you gave to the Initiate.
ByValParamDesc
Points to a VARIANT containing a two-dimensional SAFEARRAY of VARIANTs that describes how to map the data in ByValParams to parameters of the 4GL procedure
ByValParams
Points to a VARIANT containing a two-dimensional SAFEARRAY of VARIANTs that contains the ByVal data to be mapped to parameters of the 4GL procedure. This data is passed ByValue.
ByRefParamDesc
Points to a VARIANT containing a two-dimensional SAFEARRAY of VARIANTs that describes how to map the data in ByRefParams to parameters of the 4GL procedure
ByRefParams
Points to a VARIANT containing a two-dimensional SAFEARRAY of VARIANTs that contains the ByRef data to be mapped to parameters of the 4GL procedure. This data is passed ByReference.
All arrays must use zero-origin indexing.