Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level form way of doing things
Message
De
13/01/1997 22:04:59
 
 
À
13/01/1997 21:57:41
John Adams
John T. Adams Software Consulting Svcs
Keedysville, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00017221
Message ID:
00017261
Vues:
76
>Does it return a value ie successful or not? My login is acutally wrapped in a session class which stores user rights etc. and the actual main.prg code looks something like:

Here's what I have. My login form called "UACCES" is punching .T. or .F. to oApp.lContinue. I guess it would be better if I return a value instead. As the code is right now, the situation is that the form login appears and disappaer immediately. Like I said, this is only like this since I put top level form. The reason that the system quits immediately is probably because oApp.lContinue remains .F. because the login form didn't wait for a user input and finished immediately.

That's why I tried to put a READ EVENT in the Activate() of the form but that didn't help.

* Call the identification form
DO FORM UACCES
IF NOT oApp.lContinue
RETURN
ENDIF

* Enable the close button
_screen.Closable=.T.

* Show the screen
_screen.Visible=.T.

* Start the event loop
READ EVENTS
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform