>>>>You can also use
SELECT IRegion FROM mytable WHERE IRegion=lnRegion TO SCREEN NOCONSOLE
>>>
>>>Yes, that would work. But, that need to resolve at the upper level. We just can't force that approach whenever we have to use a count command. There is a lot of places in the code where such command is invoked.
>>
>>You don't have to. Just make sure that lnRegion is defined, visible and peoperly populated :)
>
>We will consider moving to VFP 7.
Michel,
I did some more testing and found that your code doesnt work under VFP 7 either.
After restarting VFP 6 I'm getinng error message in command window also.
--sb--