Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INDEXSEEK Bug?
Message
From
10/05/2002 00:35:59
 
 
To
09/05/2002 11:01:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00654373
Message ID:
00654884
Views:
39
Ray,

I modified your code as showm below (VFP 6, SP5 and VFP 7, SP1):

FOR n = 1 TO 10
INSERT INTO anytable (pkey) VALUES (n)
SELECT * FROM anytable && Returns an empty cursor
IF !INDEXSEEK(n, .F., 'ANYTABLE', "PKEY")
WAIT TRANSFORM(n) WINDOW && Now INDEXSEEK() returns .T.!
ENDIF
ENDFOR

I'm unsure why INDEXSEEK() now returns .T. I ruled out the change in work areas caused by the SELECT statement. Selecting a table in another work area had no effect, nor did selecting the next open work area. Issuing a SELECT statement against a different table didn't have any effect either. Perhaps this may be an easier workaround than the one you have.

John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform