Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling
Message
From
04/01/2002 05:48:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error handling
Miscellaneous
Thread ID:
00600666
Message ID:
00600666
Views:
67
Is there any way I can get an Error handler to stop the processing of the original procedure/function (i.e. that caused the error), without having to use a global flag.

My colleague does this :

ON ERROR ErrHandler(various parameters) && This sets the value of glError

do something1

if glError then
glError = .F.
return
endif

do something2

if glError then
glError = .F.
return
endif

I hope there's a better way of doing it than this.

Thanks in advance

Pablo
Next
Reply
Map
View

Click here to load this message in the networking platform