Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Receiving parameters in form.load
Message
 
À
30/09/1998 12:12:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00141973
Message ID:
00142448
Vues:
36
The best way is to have your parameters as properties of your applicaton object so they can be accessed at any point while you load the frame. Public variables will also work (please, no-one tell me why public variables are bad) if you have no application object.

This parameter-passing problem is not unique to your design - most of us have slammed into it more than once.

Barbara

>Thanks Barbara. Maybe I've got a fundamental design problem, but here's what I'm trying to do:
>
>A parameter is passed to my form. Some of the controls on the form (treeview) Init differently depending upon the parameter. Unfortunately they Init before the form has had a chance to receive the parameter.
>
>I've got a few workarounds, but by far the simplest would be if a form could receive parameters early on - like in the load. But since this a "no go", I'll do something different.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform