Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Logoff button
Message
 
À
10/09/2005 16:39:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01048460
Message ID:
01048638
Vues:
21
>Hello,
>
>Please I want to add a command button (Logoff) that when click, will logoff the user and display login window for another user to login.
>
>Thank you

You can do something like this:
In Click Event of the button:
1. Close All opened forms in application
2. Clear all variables that depends of user
3. Reinitialise your appliction as first time runned (This may be includes previous 2 :o)
Then put the Login form in DO WHILE loop and check if the new user login) Something like:
pbLoginUser = .f.
DO WHILE NOT pbLoginUser
   DO FORM MyLoginForm
ENDDO
In MyLoginForm put pbLoginUser = .t. WHEN the user login corectly.

Something like that
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform