>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)