Thanks again Charles... the problem with this would be that the DIM statement would vary depending on the Datatype of the variable being declared.
Edit: I think i understand your code, and it is quite elegant. Let me see if i can modify it a bit to make it easier to implement.
The problem here is, how would i go around using the declared array with REDIM, RESET, ARRAY SORT, ARRAY SCAN, being passed as a parameter of type STRINGZ... et cetera? Thats what is making it hard for me, trying to adapt to every other situation. There are simply too many things to consider... The array cannot be a type, i think i will need to create a mix of your last and your first... but it cannot be a PTR array... Maybe this will have to be fixed at lowest level... reimplementation of the DIM statement? More ideas?