Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK function with a TagName
Message
From
25/03/2004 05:44:22
 
 
To
24/03/2004 12:03:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00889314
Message ID:
00889526
Views:
21
Am I being too simplistic here, Chuck? is that the actual code that you use? if so, might VFP have a problem with your index tag being, like, a reserved word - ORDER, usually involved in indexing. It should make no difference whether you have an order set or not. OK, INDEXSEEK() works but that was a later addition to the language and maybe is coded differently.

Just my two-penn'orth

Terry

>Is there a bug with the SEEK function sometimes not using the TagName? I'm using VFP 6 and my tables are not buffered they are opened using just the USE table statement. But I have a line of code that state
>
>
>IF SEEK(value, 'mytable','order')
>   *-- do something
>ELSE
>   *-- do something else
>ENDIF
>
>
>It hits the else statement even when it should find it. The table is open but with a different order by and it's not the currently selected table. If I select the table first or issue a SET ORDER TO order IN mytable then the seek works. I've also had issues with no order being set and getting a message that an index order needs to be set even when I specify the order in the seek function. This table has no filter set no relationship set nothing. If I'm in the debugger and watch it hit the else and set the next statement back to the seek function it works.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform