Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiled EXE program not functioning!
Message
De
30/11/2002 02:29:21
 
 
À
30/11/2002 02:20:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00728318
Message ID:
00728327
Vues:
9
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform