Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON ERROR calls in FORMS
Message
From
12/08/1997 22:18:22
 
 
To
05/08/1997 08:56:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00043158
Message ID:
00044379
Views:
40
>>I'm trying to adapt a FoxPro 2.6a program to a VFP5a form and I can't get a handle
>>on the ON ERROR command. I'm using Graphics Server, a 3rd-party graphing library,
>>to create polygons of every state in the U.S. In FPW 2.6, I have an ON ERROR DO NOTHING
>>error routine that goes to the procedure, NOTHING, and returns without doing anything.
>>
>>I have to do this in case there is a call to a nonexistant state polygon procedure. The
>>program would bomb out otherwise. I can't seem to get this to work in a VFP5 form.
>>
>>How do I go about doing this? The state polygon procedures I mentioned above are now
>>methods in the form. Listed below is the CLICK method - everything works except the ON
>>ERROR call.
>>
>>VFP doesn't like to have Thisform as part of ON ... commands. You can either put procedure NOTHING into system procedure file and >>issue ON ERROR DO Nothing, or use direct reference to form: ON ERROR frmPolygon.DoNothing

Edward,

Thanks for the information. I found a solution just after I posted my message. It was too simple.
I added RETURN THIS to my cmdDrawMap command button's Error event|method.

Dan
Previous
Reply
Map
View

Click here to load this message in the networking platform