Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters from one form to another form
Message
From
24/12/1998 13:46:13
 
 
To
24/12/1998 13:05:26
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00170329
Message ID:
00170348
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform