Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with TRY...CATCH?
Message
 
To
16/07/2009 01:00:04
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01412651
Message ID:
01412674
Views:
91
Hi Al,

great repro! In this case you can work around the problem by making a minor change to the TRY block:
m.lnHandle = _Text
_Text = Fcreate("nul")
TRY
	* Something that creates an error:
	x = y

CATCH
	* We don't really need to do anything here

ENDTRY
_Text = m.lnHandle
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform