Kovács András
2004-11-12 23:05:02 UTC
Hi!
I can't solve this problem. In my program, in one place with one table, the
saving procedure somtimes goes into a loop with a Getnextmodified, wich gives
back the same record numer witch it was called. I use table buffering with
transactions.
Here is a part of code which makes the problem:
nActRec = GETNEXTMODIFIED(0, lcAlias)
DO WHILE nActRec <> 0
GO nActRec IN (lcAlias)
IF This.NetConflict(lcAlias, nActRec, "T") && Checks for fields
Oldval()<>Curval()
ROLLBACK
RETURN .F.
ENDIF
nActRec = GETNEXTMODIFIED(nActRec, lcAlias)
ENDDO
Here the nActRec= GETNEXTMODIFIED(nActRec,lcAlias) gives back the same value
(for example: 6), and can't step out the cicle.
I use VFP 8 with SP1.
How can it be?
Thank you,
András Kovács, Hungary
I can't solve this problem. In my program, in one place with one table, the
saving procedure somtimes goes into a loop with a Getnextmodified, wich gives
back the same record numer witch it was called. I use table buffering with
transactions.
Here is a part of code which makes the problem:
nActRec = GETNEXTMODIFIED(0, lcAlias)
DO WHILE nActRec <> 0
GO nActRec IN (lcAlias)
IF This.NetConflict(lcAlias, nActRec, "T") && Checks for fields
Oldval()<>Curval()
ROLLBACK
RETURN .F.
ENDIF
nActRec = GETNEXTMODIFIED(nActRec, lcAlias)
ENDDO
Here the nActRec= GETNEXTMODIFIED(nActRec,lcAlias) gives back the same value
(for example: 6), and can't step out the cicle.
I use VFP 8 with SP1.
How can it be?
Thank you,
András Kovács, Hungary