Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2000 Server
>>>>>Hi Hilmar,
>>>>>
>>>>>That's what I thought it meant. Yes, the cursor alias is current. I guess I am just used to specifying it that way. But thanks, I will keep that in mind.
>>>>>
>>>>>Thanks,
>>>>>Sam
>>>>
>>>>
>>>>If you haven't used SET FILTER much, the one gotcha you need to watch out for is it doesn't take effect until you move the record pointer. Usually GO TOP is what you do.
>>>
>>>No. If you use SET FILTER you want to use LOCATE, not GO TOP. GO TOP is not Rushmore optimizable.
>>
>>
>>Smacking forehead! I actually knew that, just replied too quickly. There is also a trick for doing an optimizable replacement of GO BOTTOM. You set the index to Descending (if it isn't already), then LOCATE. That leaves you on the last record. Then return Descending() to its previous state. I have no doubt you already knew that....
>
>Yep! I wrote it in FoxPro Advisor July 1997. ;)
Now that I didn't know. Good one!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only