
-----------------------------------
Intet22
Thu Jun 02, 2011 9:42 am

Finding the end of a flexiable array
-----------------------------------
I need to wipe the data from my flexible array but i can't figure out how to find the end so I can use a for loop.

Please Help.

-----------------------------------
Nick
Thu Jun 02, 2011 9:54 am

Re: Finding the end of a flexiable array
-----------------------------------
use lower () and upper () to find the lower and upper bounds of a flexible array

example:
var foo : flexible array 0 .. 1 of int
foo (0) := 5
foo (1) := 10

for i : lower (foo) .. upper (foo)
    put i
end for

