Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing values to another form.
Message
 
 
To
21/07/1998 16:14:49
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00119709
Message ID:
00119874
Views:
18
Brad,

As Bruce said you need to copy the parameter to a form property if you are going to use it outside of the Init. Also I don't think you want to code that in the Activate() because that fires each time the form regains focus, so if the user edits the value, changes windows, then comes back to this one it'll stuff the original value back in the textbox. You can make the text1.Value assignment right in the Init()

>
>This is what I have on the init of magnify.scx
>
>LPARAMETERS cParam1
>
>Then I call up in the activate
>
>Thisform.text1.value = cParam1 &&This assigns the value passed to the text box.
>
>But I still am getting an error that the parameters statement was not there.
>I am not sure what I am doing wrong and would greatly appreciate any advice.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform