Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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....
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement