Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem with Transaction Logic
Hi all
In a transaction how to allow the user to save information after there is a update conflict!
In the savedata method of my form
Begin transaction
select a && Bankaccount table
lSelectA=tableupdate(.t.)
sele b && Check table
lSelectB=tableupdate(.t.)
if lSelectA and lSelectB
wait wind 'record saved'
end transaction
else
if messagebox('Table is in use by another user',5+32+0,'Error')=4 &&Retry
rollback
thisform.savedata && is this Correct logic
else
rollback
endif
endif
thanks
ak
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement