Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET KEY and LOCATE FOR
Message
From
29/09/1998 05:21:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/09/1998 15:59:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00141608
Message ID:
00141804
Views:
22
>No lectures about views, please.
>
>Is LOCATE FOR going to be relatively efficient for a situation where SET KEY limits the records to, oh, a few dozen records at most? IOW, does LOCATE FOR use the SET KEY index? I have hardly ever issued a locate, since have been scarred by them in Clipper days. :-)
Hidy Nancy,
I think "Set key" is an enhancement to language. Combined with "locate for" might be questionable since it already has rush me more quickly optimization :) I would have a tendency to use "set key" (don't think I'm paranoid and not thrusting to Rushmore - anybody watching me *|* ?). OTOH I wonder, set filter is also powered by Rushmore but anyone find it fast (not me) ? And OTOH (used both hands ?) don't let "set key" PUN on you (set key + seek(a_multipl_ existing_value_in_set_key_range), if ! first occurence in set key range it would return .f.). Also as order changes set key is nullified implicitly.
Maybe the easier (and faster ?) way (being frankly more coding but the one I thrust) :
seek()
locate for ... while eKeyRange
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform