Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace value from form1 to form2
Message
From
19/12/2004 13:46:24
 
 
To
19/12/2004 06:17:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00958010
Message ID:
00970420
Views:
16
>>but this code give me no rsult
>>thisform.pageframe1.page15.text1.value = _Screen.Activeform.text1.value
>>thisform.pageframe1.page15.text2.value = _Screen.Activeform.text2.value


Your code assumes that your pageframe name property = "Pageframe1"
AND page 15 Name property = "page15"
AND on page 15 you have 2 textboxes with their name property = "text1" and "text2"
AND the currently active form form has 2 textboxes that are not in any other container like a pageframe whose name properties are "text1" and "text2" and those text boxes contain the value that you expect.

If ANY of the above conditions are NOT true or if you have any other code that sets the value of the 2 text boxes referred to on page 15, your code will not set those values as you expect.

This is just a guess, but maybe your page name is not really "page15" so you may need to either provide the correct name or reference it using thisform.pageframe1.pages() property. Or perhaps the form that you expect _Screen.Activeform to be is not the active form.
? _Screen.Activeform.NAME
*!* does this return the name of the form that you expect?
? _Screen.Activeform.text1.value
*!* does this return the value you want to see in thisform.pageframe1.pages(15).text1.value 
? _Screen.Activeform.text2.value
*!* does this return the value you want to see in thisform.pageframe2.pages(15).text1.value 


thisform.pageframe1.pages(15).text1.value = _Screen.Activeform.text1.value
thisform.pageframe1.pages(15).text2.value = _Screen.Activeform.text2.value
Previous
Reply
Map
View

Click here to load this message in the networking platform