Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login Security
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00009470
Message ID:
00009471
Vues:
25
>My application requires logon security at the form level. An easy way to do this is by creating a login class based on a form class and instantiating the class during the init() of the form that needs to be opened. If the user doesn't provide the right password, the init() returns false. Is there a way that would require less coding? I have only 16 hours to contract this. Any help appreciated.

Well, if this is at the form level then I suppose certain forms will require a logon to proceed. So, you will probably want to create a property ThisForm.lLogon in the form which will fire the login form is set to .T.

In your baseform, I suppose you have one, in the Init(), you will check for that property. If set to .T., you call DO FORM LOGON TO llProceed WITH ThisForm.Name. Your logon form will then return a value which you will compare in your BaseForm::Init(). If .F. then you RETURN .F. in the Init().

So, you the only thing you have to do in each of those form, is to set the property ThisForm.lLogon to .T.

In the form LOGON, you can then have a PARAMETER in the Init() which you can take action on depending on the form that call it. This may be useful in the case you have a separate authorized users depending on certain forms.

Hope that help.
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