PML Customisation
User Guide
Arrays
: Arrays of Arrays (Multi-dimensional Arrays)
Arrays of Arrays (Multi-dimensional Arrays)
An array element may itself be an array:
!Surname = 1
!Forname = 2
!Employee[1][!Surname] = 'Smith'
!Employee[1][!Forname] = 'Samuel'
!Employee[2][!Surname] = 'Bull'
!Employee[2][!Forname] = 'John'
!FullName = !Employee[1][!Forname] & ' ' &
!Employee[1][!Surname]
The value
!FullName
will be
'Samuel Smith'
.
It is also possible to assign an entire array to an array element:
!TempName[!Surname] = 'Truman'
!TempName[!Forname] = 'Harry'
!Employee[3] = !TempName
!FullName = !Employee[3][!Forname] & ' ' &
!Employee[3][!Surname]
The value
!FullName
will now be 'Harry Truman'.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.