Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK function with a TagName
Message
From
24/03/2004 12:03:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
SEEK function with a TagName
Miscellaneous
Thread ID:
00889314
Message ID:
00889314
Views:
55
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.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Next
Reply
Map
View

Click here to load this message in the networking platform