Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK() not working as expected
Message
From
08/07/2000 18:56:35
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00389870
Message ID:
00389885
Views:
15
>This may be trivial but where do change the master tag of the cursor? When you do the indexing, the second index statement changes the master order to cSchool. You have to change the order to CustName at some point.

Don't worry about trivial, I'm looking seriously at all WAGs at this point!

Your point is well taken. There are other controls (option groups) that set the master tag appropriately via SET ORDER TO (tagname) IN (cursor). I have confirmed the proper tag is set immediately prior to the SEEK() call.

The grid RecordSource and the column ControlSources and header Captions are rebuilt on-the-fly depending on the desired search cursor and order.
>
>I don't remember if it was available in VFP5 but in VFP 6 there is an optional 3rd parameter to the SEEK() function where you can specify the tag the seek should use.

That feature is in VFP5 as well. However, since the code is semi-generic I'd rather not have to explicitly figure out the right tag for each valid search cursor/tag combination.
>
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform