PML Customisation User Guide

Arrays : Arrays of Objects : Block Evaluation And Arrays
A convenient way of performing the same command on each element of an array is to use block evaluation. This in effect provides a way of building your own own array-methods.
There are two steps involved: first create a BLOCK object from the command text, then apply this BLOCK to that array with the EVALUATE array method. Here is an illustration:
First you create a BLOCK out of the command to be processed for each array element:
The special variable Evalindex is automatically incremented during the evaluation of the block to the index of each array element in turn. Finally you use the Evaluate() method to invoke block processing on the array:
!Names will contain the names as an array of STRING elements.

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