Community articleDefining Services Provided by the FunctionCall Structure
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

The FunctionCall structure you have created will provide two services or functions.
The first service is the implementation of your custom functions. A forward declaration for this service was declared previously as the function FCISimpleFunctions. This function tells the forms driver what to do when custom functions are called from within forms.
The second service defines the help available to form designers when working with your custom functions in IBM® Forms compliant products, such as the Designer. A forward declaration for this service was declared previously as the function FCISimpleHelp.
Use the function called FunctionCall_SetObjectProc to define the services offered by the FunctionCall structure.
  • This function is called once for each service being defined, and is passed the following parameters:
  • TheFunctionCall structure.
  • The function that implements the service.
  • The type of service being defined
  • In the following example FunctionCall_SetObjectProc is called twice. The first call defines the services offered by FCISimpleFunctions. And the second call defines the services offered by FCISimpleHelp.
  • if ((theError = FunctionCall_SetObjectProc(theFunctionCall,
          (voidP)FCISimpleFunctions, FUNCTIONCALLEVALUATE)) != OK)
          return(theError);
    if ((theError = FunctionCall_SetObjectProc(theFunctionCall,
          (voidP)FCISimpleHelp, FUNCTIONCALLHELP)) != OK)
          return(theError);