Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters from one form to another form
Message
De
24/12/1998 13:46:13
 
 
À
24/12/1998 13:05:26
Frank Su
NOVAtime Technology, Inc.
Monterey Park, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00170329
Message ID:
00170348
Vues:
22
>I tried to pass a set of parameters using the following command:
>=doform("MyForm",tParName1,tParName2,...)
>
>In the "MyForm" ini event, those parameters are defined but those parameters disappeared in the rest of the objects(like combox box) in "MyForm".
>
>Is there any way to setup those variables as public only in this form without setting a Property in the form?

No, they have to be PUBLIC for everyone to see, or they must be properties of the form, for only this form to see.

If they are made properties: ie, myprop1, myprop2, mypro3, etc., then in the forms init method you must move the parameters to the properties.
form init:
LPARAMETERS param1, param2, param3
WITH thisform
  .myprop1 = param1
  .myprop2 = param2
  .myprop3 = param3
ENDWITH
Then you must reference the properties in your other methods.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform