General information
Category:
Coding, syntax & commands
Title:
Problems with a GOTO recnum
Hi.
Has anybody had any problems with GOTO recnum. I have an app which seems to fail on this
intermittently and cant see any reason for it.
My code is as follows:
Select Recno() as MyRecnum,Field1,Field2 from MyTable Into Cursor Cur Readwrite
Do stuff with Cur
Sele Cur
Goto top
DO WHILE OT EOF()
If Condition met
Sele MyTable
Goto Cur.MyRecnum
Update Stuff
Endif
Sele Cur
Skip
Enddo
What seems to be happening, again infrequently , but I cannot see a pattern,
is that the last record in MyTable is updated instead of the MyRecnum record
Any ideas on this would be appreciated
Regards.
Gerard
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