Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access the parent form property in child form object
Message
From
04/06/2014 21:43:36
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to access the parent form property in child form object
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:
01601319
Views:
44
Hi,

I have a property nlineno in the parent form, and I pass the form to the child form as follow
do childrorm with thisform
the child form init method
lparameters opform
I can display out the value of the opform.nlineno in the child form's init method,
Messagebox(opform.nlineno)
but I can't display out the value in the Button object in the child form's click method,
it prompt me an error message, "object opform is not found", when I click the button in the child form.

Why ?
Please advise

Derek Yim
Next
Reply
Map
View

Click here to load this message in the networking platform