Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
End Transaction
Message
De
08/06/2002 17:00:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00666239
Message ID:
00666331
Vues:
15
If you can use table buffering you should be able to use tableupdate in a transaction and rollback if either fails to be updated.
cursorsetprop("buffering",5,"Header")
cursorsetprop("buffering",5,"Detail")

loop Start

Insert into Header..
Insert into Detail..
Begin Transaction
if !tableupdate(0,.t.,"Header") .or. !tableupdate(0,.t.,"Detail")
	*!* Transaction failed
	Rollback
	messagebox("Update failed")
else
	end transaction
endif
....
.....
loop end
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform