Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi João,
>I find it in a minute a go...some code for test purpose in activate method do this trouble.
Cool! Glad you found the problem.
>Thank's anyway for the response.
No problem.
>Another thing, i'm new to VFP, how can i trap things like that with debug?
Well, I don't know what the problem turned out to be, but the way I'd start with the debugging is to set a break point on the IF statement. If you use VFP 7.0, then you can just click in the left margin of the code window. If you're using 6.0 or earlier, you need to right click on the IF line of code and select set breakpoint.
Once the program breaks, check your assumptions. In this case, set a watch point on ".EditMode" (without the quotes) or just hold the mouse over the variable, and the tooltip will tell you what the value is. Then, chose step from the debugger toolbar or press F8, and see where the code branches to.
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