Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global mem vars -> global application properties?
Message
From
11/07/2001 11:07:15
 
 
To
11/07/2001 09:54:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00528711
Message ID:
00529168
Views:
13
>What I am missing (because I never did in the past is how to create the global property, i.e. oApp.CurrentUser once I have oApp.
*!* Just for a very brief example of an application object
DEFINE CLASS oApp AS SESSION
    CurrentUser = .NULL.
    PROCEDURE Init()
        USE MyUserTable
        GO TOP
        This.CurrentUser = MyUserTable.UserID
    ENDPROC
ENDDEFINE
To do it visually, create a classlib, add a custom, or session class. Under the Class method, create a custom property for each bit of data you need.

You'll probably want to review this issue in some detail before you just start out. I believe that the Application Wizard creates an oApp object (I don't have time to check this right now). There is also a free version of Code Book that will illustrate application frameworks.
Previous
Reply
Map
View

Click here to load this message in the networking platform