Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in table buffering
Message
De
11/06/2007 05:06:36
 
 
À
09/06/2007 02:31:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01231651
Message ID:
01231907
Vues:
12
>I have two table to update belonging to 2 different databases.
>here is the code
>
>>A trigger invoking tableupdate in another table?
>>Cetin
>
>If !CursorGetProp("Buffering",'artmag') = 5
>     =MessageBox("warning message")
>     Return
>EndIf 	
>
>Begin Transaction
>llokSave =.f.
>
>if tableupdate(1,.f.,'artmag')
>   if tableupdate(1,.f.,'e_artmag')
>      llOkSave = .t.
>   EndIf
>EndIf
>If llOkSave
>   End Transaction 				
>Else
>  RollBack
>  =TableRevert(.t.,'artmag')
>  =TableRevert(.t.,'e_artmag')
>  Return .f.
>EndIf 	
>
>
>What i cannot explain is that on my PC everything run ok.

Alessio

Wouldn't you want to teblerevert() before rollback?

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform