Hello David
Now that's creepy. Ok here it is:
- i start vfp6 from scretch, issue clear all (just in case), run your test program from an open prg - it fails
- i create a blank form, set the data session to private, paste you test program in the activate method, run the form - and it runs.
- i add "set datasession to 2" to the prg - run it (with a 'virgin' vfp) and it runs
now can you explain that?! So it has to do with the datasession - i don't get it. i ensured nothing is open in any of the tests, no other datasessions are created/open/active. no programs/tools are loaded/running.
i do not know why it would run in 1 ds but not in the other. maybe it's not the ds, maybe it's 1 of the associated 'set' commands, which gets reset on a new ds?!
>Gunnar,
>
>I copied/pasted the code into VFP6SP5, highlighted it and executed it. It ran fine. Same result in VFP7SP1. What heppend if you run it from a private DS form?
>
>>it would be nice if you could test it in Vfp6 Sp5. Thanks.