<< Click to Display Table of Contents >> Navigation: »No topics above this level« Calling functions |
mapp Services V5.16
In Structured Text (ST), a function is called by writing the name of the function and then listing the desired values of the parameters in brackets, separated by commas.
The desired values of the parameters can optionally be assigned to the names of the parameters.
<function_name> ( <expression1>, <expression2>, ... <expressionN> );
The order in which the values are specified matters.
<function_name> ( <parameter1> := <expression1>, <parameter2> := <expression2>,
... <parameterN> := <expressionN> );
Var1 := FIND(IN1 := 'Strukturierter Text', IN2 := 'Text');
Function "FIND" is called. Parameters "IN1" and "IN2" are assigned in the call. The result of the function call is assigned to variable "Var1". After execution of this statement, "Var1" has the value 16.