Information générale
Catégorie:
Codage, syntaxe et commandes
>>Thanks for responding.
>>
>>>So what line does it stop on? Or does it actually get to x = 1? What happens next?
>>>
>>
>>It runs the init method then exists the form, that is it gets to x = 1 and then exits the form.
>
>I noticed you have:
>
>m.glValid = .F.
Sane thing happens if I take out. it is a gloabl vairable. I set it to .T. if user eneters a correct id and passoword in a lost focus method.
>
>You don't return this from Init(), do you. Init returning false causes form abortion.
>
>
>>
>>>Why not just set a breakpoint at the 1st line of Init() and watch what happens in debug (or are you still on VFP3)?
>>>
>>
>>I used the debugger to find out what was happening, I set a break point in the program which invokes it. I am using VFP 9.
>
>Fair enough
>
>>
>>>UIt's likely that till Init() is done, the form doesn't "know" its objects, such as Thisform.lblErrorMsg.
>>
>>So what do I do now?
>
>Not applicable in this case, if it gets to x = 1.
>
>Apart from the above, I'm stumped too.
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