Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Serget.. thanks for your reply.
I thought that mabe the syntax : Goto Cur.MyRecnum might be casuing the problem.
What it seems to be doing is getting the last record on the cursor instead of the first
Maybe if I put in into a variable first ??as in X=Cur,MyRecnum and then Goto X
Regards,
Gerard
>You're looking in the wrong place. It's not GOTO that creates the problem.
>
>>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement