Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled EXE program not functioning!
Message
From
30/11/2002 02:29:21
 
 
To
30/11/2002 02:20:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728318
Message ID:
00728327
Views:
8
Virgilio

There are lots of ways to do this but here is one approach...

In your main program you would normally set up the environment, set your procedure files, library files, the menu system, etc, and then you want to load your login form. After all that you would put your READ EVENTS statement (in the main program). When you want to quit your application you would issue the CLEAR EVENTS statement.

Also note that a login form should probably be a modal form so that the user cannot do anything except answer the login form request. Only if that is succesful would you want the user to be able to close the login form and continue into the application. If the login is not succesful then you probably want to CLEAR EVENTS and exit the system.

Here is a pseudo code version of a typical main prg:

Set Environment...
Set Procedure ...
Set Library ...

Do Form Login

If Login_OK

Do Menu System

Set Up Anything Else You Need...

READ EVENTS && Puts VFP into events loop

Endif

Return && Quit Application

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform