Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to access parms in Load rather than Init?
Message
De
03/11/2004 13:28:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00957567
Message ID:
00957749
Vues:
15
>We have an old framework that we code around. All the tables used in a program are stored in a database. Therefore, we call a routine passing to it the name of the program that is running and it opens all of the necessary tables for that program.
>
>I'm now trying to incorporate this into a form. However, the name of the program is passed to the form. From what I understand, parms passed to forms are accessed in the Init method which fires AFTER the Load method. The Load method is where i need to open the tables (so that I can tie grids to tables, etc).
>
>Is there any way to access these passed parms in the Load event rather than the Init?
>
>Thanks so much for your input!

You can use a Private var and define a ParamName convention:
PRIVATE ParamName
ParamName = VarInfo
DO FORM
* or
NEWOBJECT(
* on Load
.... = m.ParamName
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform