Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This is a weird one!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00271823
Message ID:
00271957
Vues:
30
>>>Jon,
>>>
>>>Stop wondering, open the debugger and run your app, when the error occurs choose Suspend and go to the debugger, it will show the exact line of code that caused the error.
Jim,
>>Tried that :) here is the exact line of code where the form bombs
>>DODEFAULT()
>>THIS.PARENT.PARENT.COMBO1.SETFOCUS &&Right here
>>
>
>Jon,
>
>Where is the above code? Have you tried commetning out the DeDefault() to see if it bombs on teh SetFocus line?
Jim, the above line of code is in my EDIT button. It seems to run the default code fine, but when the combobox gets focus thats when the form bombs, my tab order was set to give the combobox focus upon completion of the EDIT.CLICK method. So I changed the tab order so that a textbox would get focus after the edit.click code ran. Remember I had commented the "THIS.PARENT...SETFOCUS" line in the EDIT Buttons click event. Than when I clicked the edit botton a textbox had focus, the form hadn't bombed yet, but when I clicked on the combobox, Boom the error pops up.
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform