Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Design
Message
 
To
30/01/2003 11:26:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00747206
Message ID:
00747239
Views:
10
>My design question is this. I need all the peices of data on the logged on user at various stages in my app to verify which functions are open to them since authoriy varies between users. Do I create a cursor based on the user after the password is verified and use the cursor results throughout my app? Or do I set up Public varibles based on the cursor results?
>
>Whats the best way to handle this? One note is at some points in my app I push data to remote tables. When this happens I have to close my tables in the DE and then open them again. Won't this kill my cursor?

Use a singleton application object to hold the currently logged in user data. Create a method on the application class to return the user information.

oApp.oUser.name
Previous
Reply
Map
View

Click here to load this message in the networking platform