Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form NOT executed form a program
Message
From
13/09/2006 14:06:36
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01153405
Message ID:
01153460
Views:
26
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform