Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate
Message
De
27/07/1999 10:59:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00246393
Message ID:
00246622
Vues:
21
>First your tableUpdate is assuming that the correct work area is selected. It is advisable to use all the arguments for TableUpdate and TableRevert to prevent bugs of something changing a work area on you.
>
>TableUpdate(1,.F.,"MyCursor")
>
>Second your getfldstate is telling you that you are on a new blank record in the cursor. I believe you want to Requery("MyCursor") for teh local view to clear it of the curretn status and update it from the original tables.

Thanks Jim, it worked. But aren't those the default values according to the MSDN documentation? My previous code was:

select lv_sea310
llRetorno = Tableupdate(1)

My actual code now is:

select lv_sea310
TableUpdate(1,.F.,"lv_sea310")


Have to remember VFP what are the defaults?

Regards and thanks

Oscar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform