Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database relations?
Message
De
24/11/1999 01:02:22
 
 
À
23/11/1999 14:38:54
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00293872
Message ID:
00294817
Vues:
24
The Developer's Guide, in HTML Help, has a few good examples. A simple one would be:

STORE .F. To lParentOK,lChildOK
BEGIN TRANSACTION
lChildOK=TABLEUPDATE(2,.F.,"childtable")
lParentOK=TABLEUPDATE(2,.F.,"childtable")
IF lChildOK AND lParentOK
END TRANSACTION
ELSE
WAIT WIND "You got a problem" NOWAIT
ROLLBACK
ENDIF




>Hi John,
>
>Thanks you for your solution. So far it is working well.
>
>You mentionned bufferng both tables and wrap TABLEUPDATE into a TRANSACTION, to ensure that all changes are saved or lost. Do you have an example of how to do this?
>
>Thanks again
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform