@CallDEFFNFunction
Syntax
@CallDEFFNFunction(TEXTGLOBALGFUNNAME;[Parameter1;[Parameter2;[...;[Parameter99]]]]);
Description
Calls the GLOABLe DEFFN function named TEXT TEXTGLOBALGFUNNAME and the following parameters.
The return parameters are determined by the definition of the DEFFN function definition -> see FUNKTIONEN.
The GLOBALe DEFFN function must have been defined before the call, and the number of parameters must match.
ACHTUNG:
Parameters of the GLOBALen DEFFN function that are defined as return parameters are also returned to the parameters passed at the corresponding position via @CallDEFFNFunction are passed.
Therefore do not pass constants at this position (see example RetParameter3 and RetParameter4).
Return value:
Im case of success is TRUE is returned, otherwise @ERROR.
Example: @CallDEFFNFunction(TEXTGLOBALGFUNNAME;[Parameter1;[Parameter2;[…;[Parameter99]]]]);
RetParameter3:="In Text Parameter 3";
FunRet:=@CallDEFFNFunction("TestGFun[GLOBAL]";"Text1";"Text2";RetParameter3;RetParameter4);
@LogReport("Back in MainScript";3);
@LogReport(FunRet;3);
@LogReport("RetParameter3:"+RetParameter3;3);
@LogReport("RetParameter4:"+RetParameter4;3);
@LogReport("MainScript end";3);
DELFN:TestGFun[GLOBAL]();
DEFFN:TestGFun[GLOBAL](InParameter1;InParameter2;*InOutParameter3;*OutParameter4)
{
@LogReport("TestGFun[GLOBAL] start";3);
@LogReport("InParameter1 :"+InParameter1;3);
@LogReport("InParameter2 :"+InParameter2;3);
@LogReport("InOutParameter3:"+InOutParameter3;3);
InOutParameter3:=InParameter1;
OutParameter4:=InParameter2;
@LogReport("TestGFun[GLOBAL] end";3);
}
After calling the GLOBAL function TestGFun[GLOBAL] the value of the variable is InOutParameter3 is equal to "Text1" and the content of the variable OutParameter4 is equal to "Text2".
Note : This text was machine-translated and may contain inaccuracies.
