Arrays

<< Click to Display Table of Contents >>

Navigation:  Script Language >

Arrays

Library supports single-dimensional arrays.

Arrays can be passed as function parameters, for example

 

s := Format('Value is %s', [value]);

 

and assigned in code:

 

a := [1, 2, 3];

 

Following functions can be used on arrays:

High() - array high bound

Length() - array length

SetLength() - set array length

[index]  - get or set array element

 

Arrays supports in operator, f.e.

 

if 5 in a then ...

 

and can be used in for-in statements:

 

for x in a do ...