Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > GLOBAL_LSCALL

 

 

Purpose

GLOBAL_LSCALL allows you to call another function from within a function as a subroutine.
 

Syntax

GLOBAL_LSCALL(function name{,interface ID{,return code}})
 

Operation

function name is the name of the function to be called.
interface ID
 is the optional ID of the interface of the function to be called.
return code
 is optional and is always a numeric variable.
 

Remarks  

Applications that used this feature prior to Version 4 must convert the function to 4.0 format using the file conversion utility @UPDGLF. If the file is not converted, errors may or may not occur when the function is genned. PROIV will disregard 3.0 formatted parameter lists, used by GLOBAL_LSCALLS, without informing you.
 

Example  

GLOBAL_LSCALL(TESTFUNC)

GLOBAL_LSCALL(TESTFUNC,CALL)

GLOBAL_LSCALL(TESTFUNC,CALL,#RETURNCODE)
 

 

If either GLOBAL_LSCALL or LSCALL is used either directly or indirectly via a Global Logic, you must preserve the value of $INPUT and #INPUT by saving it in another variable and restoring it on return.

 

Comment on this topic

Topic ID: 520063