Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change value of property on another form
Message
 
To
26/03/1997 02:36:40
Siu-Hung Lai
The Hong Kong University of Sci. & Tech.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025628
Message ID:
00025654
Views:
22
To refer to another form, this is what works for me:

first issue:

do form form1 name form1

second; refer to the form as

form1.object1.property.and_so_on

if you are using page frames you need to refer to them and their
pages as well.

Hope this help.

>I did trials to learn VFP. In form1, I issue "Do form form2" to activate form2. In form2, I want to change the value of form1.rtnvalue(a property of form1). I use "form1.rtnvalue = thisform.text1.value" in a click event of button in form2. After close form2 and return to form1, I found form1.rtnvalue remain the same. No error appears. I can change the value of a text box in form1 by "form1.text1.value = thisform.text1.value" in form2. I don't know what's wrong. Please give me some hints.
>
>Thanks in advance,
>
>S H
Alfred Trabulsi
Intelexis.
www.intelexis.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform