Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667392
Message ID:
00667404
Vues:
18
Hi, Ria!

>>
A set of public variables are defined in A.exe . They are assigned values from
an INI file. These variables are used in the program to define the location
of data etc.
<<

To store such information it's always better to use properties on an object instead of a lot of public variables:
- Create an object called goApp
- Add all properties you need and fill them.
- At all places you have to refer to any properties use goApp.MyProp...

NOTE: To bring that to live "goApp" itself must be a public variable, but the one and only in your system.


Now to the problem with A.EXE and B.EXE - here is my idea according to my solution above:
...
LOCAL loApp
* store goApp to a safe place
loApp = goApp
* release goApp
RELEASE goApp
* call the EXE
DO b.EXE
* redefine goApp
PUBLIC goApp
goApp = loApp
...
SeBaFlu
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform