Computer Science Canada

Finding the end of a flexiable array

Author:  Intet22 [ Thu Jun 02, 2011 9:42 am ]
Post subject:  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.

Author:  Nick [ Thu Jun 02, 2011 9:54 am ]
Post subject:  Re: Finding the end of a flexiable array

use lower () and upper () to find the lower and upper bounds of a flexible array

example:
Turing:
var foo : flexible array 0 .. 1 of int
foo (0) := 5
foo (1) := 10

for i : lower (foo) .. upper (foo)
    put i
end for


: