Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROBLEM: CHECK with error on CREATE CURSOR/TABLE
Message
From
06/09/2003 10:30:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
PROBLEM: CHECK with error on CREATE CURSOR/TABLE
Miscellaneous
Thread ID:
00826736
Message ID:
00826736
Views:
70
Hi,

If CHECK expression is bad, the error ignore TRY...ENDTRY.
CLEAR
CREATE CURSOR myCursor (f1 c(20) CHECK f1=2 )
TRY
	APPEND BLANK
CATCH
	MESSAGEBOX(MESSAGE(),0,'my Error Box 1')  
ENDTRY

CREATE CURSOR myCursor (f1 c(20) CHECK f1=A+2 )
TRY
	APPEND BLANK
CATCH
	MESSAGEBOX(MESSAGE(),0,'my Error Box 2')  
ENDTRY
Note: this problem occurs also on VFP6/7/8 with ON ERROR error handling schema.

Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform