Thanks Zib i was able to create and manipulate the dynamic array as you postd. I was just wondering what exactly happens to the memory used by the array. If the dynamic array is declared locally to a procedure or function; after the procedure/ function has exited does the memory used by the dynamic array get destroyed?
If the dynamic array is declared globally how do you empty the array is it as simple as setting the array length to 0?
setlength(DynArray,0);
Cheers Lee