Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY...CATCH fails with error 1884 - revised
Message
 
 
To
13/02/2004 11:43:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00877145
Message ID:
00877158
Views:
11
Hey Chuck,
Thanks for the reply, I'll give that a shot. Not real fond of turning off the error handler, but should be cool in this case.
How's it going otherwise? Still at Blashko? Take it easy,

jfh

>
>Hey John,
>I tried the code above and the ALTER TABLE seems to just go strait to the ON ERROR command. So if you turn it off I now works for me.
>
>
>TRY
>   ON ERROR *
>   ALTER TABLE myTable ADD PRIMARY KEY my_id TAG my_id
>   ON ERROR
>CATCH TO oException WHEN oException.ErrorNo = 1884
>     MESSAGEBOX( 'KAPOW!  Go fix your data.' )
>ENDTRY
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform