Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main Prg file
Message
De
18/02/2016 03:47:33
 
 
À
17/02/2016 16:58:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01631633
Message ID:
01631648
Vues:
60
>I am working on modernizing a rather large program that has hundreds of public variables, and user functions. It is wayyy low budget, so I am trying to recycle as much of what there is form, and object wise. All the public vars and user functions etc are in the program main.prg. I am using the form designer to build new forms etc, and in Dev mode, I need access to the vars/functions in the prg file - how do I achieve this?
>

break out the part where all public vars are declared/initialized into a prg like initPublics, call that from main.prg and in your Dev mode.
Warning: depends (as you posted) on the vars really being declared "public", not global privates first declared in main at program() level 1.
Having a special Prg for Publics might help later, if the job grows in budget and time: if confronted with maintaining such really last millenium practices, I opt to create a handful of public objects and switch most such vars into the object properties. If it is really hundreds, I massaged prg/vcx/scx also by program with a list of changes to be executed if at least some sane naming convention was used ;-))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform