Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What can I/User do if TableUpdate fail!? Buffer Mode 5
Message
From
29/09/1998 08:29:48
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, India
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00141315
Message ID:
00141857
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform