PML Customisation User Guide

Variables, Objects, Functions and Methods : PML Functions and Methods
Functions and Methods may optionally have arguments that can be used to return values.
Here is a definition of a PML Function that has two REAL arguments. It also has a REAL return value, as shown by the final is REAL:
Inside a function, the arguments are referenced just as if they were local PML Variables. The RETURN keyword is used to specify the variable that stores the return value:
Here ' FRED ' is a string constant passed as an argument. You could rewrite this function so that it returns its results by changing its arguments. The output argument, !Length, will be set to the value required when the function is called:
Note:

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo