Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate
Message
De
01/11/2006 07:41:26
 
 
À
01/11/2006 07:33:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Divers
Thread ID:
01166090
Message ID:
01166092
Vues:
13
>I just want to make sure that my thinking is correct.
>
>I have the following code.
>
>Do While seek(vi_key)
> Replace key with l_key
> tableupdate()
>enddo
>
>My question is: If I move the tableupdate out of the loop, will the seek see the updated records with their new values? I do not want it to, so that is why I am thinking of moving the update out of the loop.
>
>THanks in advance.
>Christine


When you use buffering the code does not get written to disk until you do TableUpdate(). Check out the function's parameters as you can update one record or whole table (ie. many changes, many records).

See help:
TABLEUPDATE( [nRows [, lForce]] [, cTableAlias | nWorkArea] [, cErrorArray] )
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/3e524579-2348-4587-b7b2-d96ddccdd8f6.asp?frame=true

You can extract (see) buffered record changes with VFP9 SELECT-SQL's [WITH Buffering = lExpr]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/815f7265-4dfd-40b9-8f19-0673b5a48847.asp?frame=true


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform