Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TABLEUPDATE(2,.T.) leaves records that are not updated
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00500580
Message ID:
00500760
Vues:
36
>>>That is not how you use GetNextModified.
>>>local lnRecNo
>>>lnRecNo = 0
>>>lnRecNo = GetNextModified(lnRecNo, "MyTableAlias")
>>>do while lnRecNo <> 0
>>>   && do whatever update you need here
>>>   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.
>
>Yes, if that was what he was doing. Somehow, I don't think that was the case. I was real confused because at one point he said he was using SPT [first reply to Hiten Kishor].

As I understood it, he used SPT to get the data.
Made an updatable cursor with Table buffering.
Made changes.
Issued TableUpdate(2)
Then was trying to handle the failed updates.
I'd suggested looping and issuing the singleton TableUpdate(1) or TableRevert(.F.) on each hit as needed.

Otherwise, endless loop!
Bill Armbrecht
VFP MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform