Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access the parent form property in child form obj
Message
From
05/06/2014 04:53:31
 
 
To
05/06/2014 04:50:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01601319
Message ID:
01601340
Views:
25
>>>>>technical answer is because in .init () you used LPARAMETER and not PARAMETER
>>>>
>>>>Are you sure about that ?
>>>
>>>if it is still on the stack, certainly, otherwise why would the OP assume it to be available in the button...
>>>
>>
>>I don't think so, Thomas
>>
>>Parameter makes it a private variable, that goes out of scope when the form's init() returns. The button.Click happens after that
>>
>
>you are right, I did not read slow enough - he wrote about manual clicking, where I fast read button.click() and assumed it to be called from the .init(). Going without coffee has side effects ;-)


Never mind :-)
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform