Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting to properties on another open non MDI form.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00161616
Message ID:
00161619
Views:
24
>>I need to access properties on another form. In a very basic setup here is what I have:
>>
>>
>>***startup form is form1
>>
>>***gotfocus of form1
>>Do form2
>>
>>***btnclick on form1
>>thisform.release
>>do form3
>>
>>****btnclick on form3
>>x = form2.property
>>* should this be desktop.form2.property? *
>>
>>***error msg
>>object form2 not found (btw: I am looking right at it. I copied and pasted the name into the code incase I was misspelling)
>>
>>What am i screwing up here?
> You need _SCREEN.forms.form2.property or something close to that. If that syntax looks a little ugly, that is why people hang form names like decorations in an array property of their application object.

I tried _screens.forms.form2 and _screens.form.form2 and _screens.form2 these all state that the object after _screen is unknown. I looked for _screen and it was very vanilla help. I appreciate your help. I am very close to using a global (Crap) I can fix it after the holiday i guess....
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform