>>>>
>>>>MIchel,
>>>>
>>>>I figured this out. Change you ERROR metod
>>>>FUNCTION Error
>>>>PARAMETER nError,cMethod,nLine
>>>><b>MESSAGEBOX('ErrorMethod')</b>
>>>>RETURN TO ShowMessage
and run your code. You wouldn't see ErrorMethod message because COUNT FOR IRegion=lnRegion doesn't generate an error!
>>>>
>>>>To confirm it just run COUNT FOR IRegion=lnRegion from command window on any open table.
>>>>You can use
>>>
>>>Hello Sergey,
>>>
>>>The error method *does* fire on my machine...also, issuing a COUNT in the command window fires an error also.
>>
>>The behavior of the count as to know wether or not if will fire an error is unpredictable. This is what I came up with.
>>
>
>Yes, it is unpredictable, see my post to Sergey. Sometimes it hits the error method, and other times it does not.
Someone confirmed it is fixed in VFP 7. We will migrate asap. That's a good justification.