Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Error event set ERROR() value
Message
From
23/06/2005 18:44:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/06/2005 07:03:16
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01025752
Message ID:
01026105
Views:
15
>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
>
I'd rather say it's a documentation glitch. And the influence of try/endtry to this is also missing (VFP8 here) - not even among the SeeAlso. Still so in 9?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform