General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only