>>>>Hi
>>>>
>>>>Is there any way to tell if a filter results in 0 records?
>>>>
>>>>Thanks
>>>>
>>>>Colin
>>>
>>>Something like
>>>
>>>
>>>go top in AliasName
>>>
>>>ZeroRecords = eof('AliasName')
>>>
>>
>>I think 'locate' would be better as it's Rushmore optimizable.
>>Cetin
>
>Yeah, perhaps. I've never done any test, so I don't know how much of a difference there's involved
Gregory,
I never made a thorough test but did test anyway. My findings was that LOCATE is the winner overall. In cases Go top is faster but difference is less than twice. If it's a case where LOCATE is faster than difference was more than 6 times.
PS: I very rarely (almost to none) use set filter and things might have changed.
Cetin