Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement