Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Log In
Message
 
 
To
06/08/2000 00:44:57
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00401622
Message ID:
00401659
Views:
30
>I'm looking for some information (tips, tutorial, example) on setting up a user log in for the program I'm currently working on. Never had the pleasure of writing a program that called for this and am wondering if this is something that I can do quickly or something that I'll have to design from scratch.
>
>Rodney

Rodney,
Most (if not all) of the commercial frameworks have this feature. If you can get your hands on an evaluation copy, you can see first-hand how to implement it. You might also like using a framework.

However, if you want to do it yourself, the basic concept is to create a modal form that is called as your application starts that asks for a user name and passowrd. After the user selects OK (or some other method of releasing the form) you have code to validate the name and password against information stored in a table. If they match, you allow the app to finish starting. If not, you inform the user and quit (or give them an opportunity to try again).

That is basically how to do it. You can do whatever you want at this point with the user information. You can store the user key (primary key) in a property of your application. You could create a user object that has this information as one of its attributes. You could build a security model that uses this information to validate whether a particular user can access a specific control.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform