Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass a param to a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01245888
Message ID:
01245892
Views:
16
Timothy,

Put in the Form2's Init

lparameters zRec

And if you will use this in any other method of the form, save it in a Forms property

thisform.zRec = m.zRec

And you do not need to declare zRec as public

>I want form2 to have the value of a var in form1, what is the way to accomplish this? Where does the parameter statement go? I have this in Form1:
>Publ zrec
>zrec=RECNO()
>DO FORM2 WITH zrec
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform