Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What can I/User do if TableUpdate fail!? Buffer Mode 5
Message
De
29/09/1998 08:29:48
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, Inde
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00141315
Message ID:
00141857
Vues:
26
example ?

BEGIN TRAN
IF !TABLEUPDATE(2,.T.,"mrn")
=AERROR(ERRORARRAY)
DO CASE
CASE ERRORARRAY(1)=1884
m.msg="M.R.N already exists "
=MESSAGEBOX(m.msg,16,m.productname +"Message")
ROLLBACK
* thisform.command1.setfocus
RETU 0
CASE ERRORARRAY(1)=1539
m.msg="Cannot be modified"
=MESSAGEBOX(m.msg,16,m.productname +"Message")
ROLLBACK
* thisform.command1.setfocus
RETU 0
ENDCASE

ENDIF

*** by ra - remove seperate begin tran endtran
sele godown
=TABLEUPDATE(.T.)
END TRAN
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform