Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shared variables
Message
From
26/07/2002 01:21:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Shared variables
Miscellaneous
Thread ID:
00682871
Message ID:
00682871
Views:
65
When I create COM Server in Foxpro which is supposed to be used from two applications is there any possibility to have sort of static ( in terms of being created once for all instances ) variables with the possibility to reassign value.

DEFINE CLASS AppSwapper AS custom OLEPUBLIC

appSender = ''
request = ''

...
FUNCTION swap ( oldWindow , newWindow , request )

this.request = request
...

ENDDEFINE

so if APPLICATION1 invoked swap to APPLICATION2 ; APPLICATION2 can see the same value for request class variable which was assigned by APPLICATION1.

Or maybe other mechanism is possible.

TIA
Michael
Next
Reply
Map
View

Click here to load this message in the networking platform