Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Begin Transation e TableUpdate
Message
From
26/11/2002 08:11:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/11/2002 07:38:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00726899
Message ID:
00726905
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Entendo a teoria , mas o que significa TableUpdate(.T., .F., "Tabla1") ?
>
>No help do VFP , só encontro , um parametro lógico para o TableUpdate . E aqui vejo dois ... ?

Sintaxis:

TABLEUPDATE([nRows [, lForce]] [, cTableAlias | nWorkArea]
[, cErrorArray])

nRows ainda suporta o antigo valor lógico, .T. ou .F. "If nRows is 0 (or .F.) ..."

1 = .T., 0 = .F. Depois de VFP3, cambiaram a numérico, para suportar ainda outro valor. Porem, ainda suporta o valor lógico.

>No meu programa tenho mais ou menos isto
>
>Select tabela1
>=TableUpdate(1,.T.)
>FLUSH
>
>Select tabela2
>=TableUpdate(1,.T.)
>FLUSH
>
>Select tabela3
>=TableUpdate(1,.T.)
>FLUSH
>
>....
>Ao colocar este código dentro de um Begin Transation , só colocaria o Flush , depois do End Transation ?
>Ou o COMMIT da Transation é igual ao comando FLUSH ?

Acho que commit (END TRANSACTION) nao implica FLUSH. É mais seguro usar FLUSH depois de cada TableUpdate().

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform