There are three ways to call a Global Function:

  1. Using a GLOBAL_LSCALL in logic, in the form GLOBAL_LSCALL(FunctionName,MapName,ReturnCode)

    FunctionName is mandatory, and the function must be a Global Function, MapName is mandatory if the called function has any parameters, ReturnCode is optional, and is returned from the called function using the CALLEXIT() command.

  2. By attaching a window to a field. The Global Function name and the map name are specified on the Events tab of the field’s Property Sheet.

  3. Using a Function Key.

The parameters supplied to a Global Function are specified on the Parameters tab of the Function Definition. For each call to a Global Function, an Interface Map is used to indicate the variable to be mapped to each parameter. You specify the required Interface Map each time a Global Function is called; if a function calls the same Global Function twice, you can use the same interface map twice or you can use two different maps. All system variables are automatically passed to the called function.

As an alternative to using parameters and Interface Maps, you can use comm variables to pass information from one function to another. Comm variables are held by session. Information stored in a comm variable is accessible by any function. You can display and maintain the current contents of comm variables in System view.

Global Logics are logic routines that are available to any function. They are managed objects, created and maintained via the Open Object Dialogue. You can call a Global Logic from any Local Logic, or from another global logic. Global logics are maintained using the Global Logic Editor.

Comment on this topic

Topic ID: 500180