Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin Transaction
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00728553
Message ID:
00728556
Vues:
23
You need a begin transaction somewhere.
begin transaction
lGood = TableUpdate(1, .T., "Table1")
lGood = .F.  && i create this for an error later
IF lGood
  end transaction
else
  rollback
endif
HTH
Caroline

>Hi
>
>I have this
>
>
>Select Table1
>REPLACE Field1 WITH 1 IN Table1
>
>lGood = TableUpdate(1, .T., "Table1")
>
>lGood = .F. && i create this for an error later
>
>
>IF lGood = .T.
>
>
>ELSE
> ROLLBACK
>
> ** Here i write one error
>
> TableRevert("Table1")
>ENDIF
>
>But , ROLLBACK , Don´t work .
>
>Table1 in field1 was the value 1
>
>Can you help me ?
>thanks
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform