General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only