Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Error event set ERROR() value
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
BUG: Error event set ERROR() value
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01025752
Message ID:
01025752
Views:
64
ERROR() Help say:

An ON ERROR routine must be active for ERROR( ) to return a value other than 0.


Then:
ON ERROR 
=CREATEOBJECT("mClass")

DEFINE CLASS mClass AS Custom
	PROCEDURE Init
		='a'+1
		
	PROCEDURE Error
	LPARAMETERS nError, cMethod, nLine
	? "expected 0",ERROR()
	
ENDDEFINE
Next
Reply
Map
View

Click here to load this message in the networking platform