Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
App executes but immediately closes
Message
From
18/11/1998 09:47:06
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00158709
Message ID:
00158738
Views:
17
>>>>
>>>>Do you have READ EVENTS?
>>>
>>>Yes, read events is in the login.scx file.
>>
>>Normally, READ EVENTS is situated at root of Main.Prg:
>>***Main.Prg
>>do form login
>>do mainmenu.mpr
>>do form mainform
>>READ EVENTS
>>Return
>
>my program is set up as follows:
>
>login.scx is the beginning - files are opened, global memvars are declared and initialized and the screen is displayed allowing the user to enter their user id and password. They then click the Ok button on the login.scx screen, and if they are authorized, the mainmenu displays - the command is do form mainmenu. I don't use the standard VFP menus in my app. the mainmenu is actually a pageframe with 4 pages.
>
>the read events command occurs at the bottom of the click event of the Ok button. the last two lines of the click event are:
>read events
>do form mainmenu
>
>Obvious question - do I have to move the read events command "higher up" in the login.vcx file?
>
>Alan

I have feeling that you should utilize Main.Prg with READ EVENTS there. You can try also to move READ EVENTS to another Login form event (unload?), but I'm not sure here. Maybe someone who used to start app with form will help you.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform