>>>I guess I'm missing something here, GetNextModified(0) returns the first modified record. You decide what to do with it. i.e. Fix the error (which you can find by doing a TableUpdate(1)) or cancel the changes with TableRevert(.F.).
>>>Then, call GetNextModified(
RecNo) passing the RecNo of the record you just processed. You do this until GetNextModified() returns 0.
>>>
>>>HTH,
>>
>>Something like DO WHILE GETNEXTMODIFIED(0) # 0...
>>
>>Have a good one, and thank's
>
>That is not how you use GetNextModified.
>local lnRecNo
>lnRecNo = 0
>lnRecNo = GetNextModified(lnRecNo, "MyTableAlias")
>do while lnRecNo <> 0
>
> lnRecNo = GetNextModified(lnRecNo, "MyTableAlias")
>enddo
Hi Mark,
I believe what he coded will work if he does a TableUpdate(1) or TableRevert(.F.) on each hit.
Bill Armbrecht
VFP MCP