Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared variables
Message
De
26/07/2002 01:21:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Shared variables
Divers
Thread ID:
00682871
Message ID:
00682871
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform