>>>EXTERNAL ARRAY laArray in your prg seems to solve the issue
>>
>>Ah yes. I couldn't remember that damn command :-)
>
>Me too, I remembered I was using it in a project so I looked into it
>
>>I HATE FOXPRO ARRAYS!
>>
>>It's an awful, awful data structure.
>
>Yes, it is not very elegant and marginally useful.
Well sometimes you do need to store something in memory and all things considered they are pretty fast - certainly much faster than collections.
Arrays are useful, but in FoxPro arrays are such a pain in the ass. You can't have empty arrays, there's the horrible set of commands to manage array sizes, resizing. The fact you can't pass parameters out of functions, all the complications it causes with COM interop etc. etc.
If possible I avoid them unless there's no choice. Or at the very least add a wrapper around them. I have a set of wwCollection classes that wrap arrays with cleaner syntax, while still storing in actual arrays to get the same performance, but even that's ugly as you lose direct array syntax.
+++ Rick ---