Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to exit
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00041314
Message ID:
00041424
Vues:
28
>>My application exits fine and gracefully from the menu or by clicking the x in the corner of the screen. The problem is, I can't figure out how to exit from the login screen. An exit button with 'clear events' doesn't do the trick. Up until now, I thought I had a reasonable workaround; make the login screen modeless and just allow the user to click in the corner of the screen. The problem is, a modeless login screen allows the user to access the menu. No problem I say, so I SET SKIP to type("gcusername") = "U" on all the options in the top level. This should disable the menu until a login is successful. Well, the menu looks disabled, but if you click on it before you login, the SET SKIP for commands for the various menu option are evaluated (and returns an error because my global security level variables have not yet been set) even thought that pad is disabled. Even worse, after 'OK'ing out of all the error messages from the the unknown variables, the 'x' in the corner of the app
>>screen is grayed out, leaving no way to exit the app. What a mess.
>>I can't help but wonder if there is a better way to tackle all of this. All of this trouble could be avoided if the 'clear events' in the exit button on the login form worked. What gives?
>>
>>Thanks,
>> Erik
>
>Another note:
> It might seem a silly idea to issue clear events from a form, since it is done from my app .release method. But calling this release method from the form gives the error 'Cannot release object in use' and points to the release all command in my cleanup code. Any advice on how to go about this is greatly appreciated. Erik

You just have to install your menu AFTER the login...

:)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform