Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No #INCLUDE in FPD26? Please refresh my memory...
Message
De
04/09/2003 14:19:15
 
 
À
04/09/2003 13:16:57
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00825822
Message ID:
00826151
Vues:
26
Hi Tracy,

> Since this includes prgs as well as screens,
>I will have to include the #DEFINE statements in them all as I feared.

not necessarily...

If ***all*** your programs follow strict variable naming rules
you could create "pseudo" constants defined in a step loaded app.

like:
parameter tcNextprog
private all like _Q_CONST*
_Q_CONST1 = "myconst1"
_Q_CONST2 = "myconst2"
_Q_CONST3 = "myconst3"
_Q_CONST4 = "myconst4"
_Q_CONST5 = "myconst5"

do (m.tcNextprog)


as long as the _Q_CONST* are never hidden by calling "private" again, they should be visible in any program "higher" in the program stack.

You can also define a special cursor / table for your "constants".

greetings from the old dirty tricks department ;-)

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform