>>>EXTERNAL ARRAY laArray in your prg seems to solve the issue
>>
>>Ah yes. I couldn't remember that damn command :-)
>
>EXTERNAL command is one of the commands that should be named #EXTERNAL, because the damn thing is for use just when compiling, but being a command it is executed every time with your code, using preciuos CPU time whithout any sense.
Actually I don't think that's true. Fox code is precompiled and certain commands have essentially no runtime affect. Variable declarations in particular don't cause any runtime overhead they're just markers for the compiler when it parses the code. Variable scope is something the compiler fixes up. I'm not sure whether EXTERNAL is different but I'm pretty sure it's the same as LOCAL/PRIVATE etc. which are basically compiler directives. After all even if you compile and get the error the code runs just fine.
+++ Rick ---
>
>
>>
>>I HATE FOXPRO ARRAYS!
>>
>>It's an awful, awful data structure.
>>
>>+++ Rick ---