Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the object value from parent form ?
Message
From
19/05/2014 23:07:15
 
 
To
19/05/2014 23:01:04
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01600260
Message ID:
01600261
Views:
58
>Hi,
>I have a main form to call another sub form,
>there are some text boxes on the main form, such as txtCusno txtClientName, txtClentAddr etc..
>
>
>DO FORM frmOrder WITH thisform.txtCusno.Value
>
>
>the sub form also have the same text boxes, txtCusno, txtClientName, txtClientAddr etc which is same as the parent form
>I want the text box can also display the same value as the parent form.
>How to do it ?
>
>Please advise.
>Thanks.
>Derek

What is used as RowSource for these textboxes? Can you use the same table and row?

Otherwise you can pass just thisform to the child form

In the init of the Child form you will do
lparameters toForm
thisform.oCallingForm  = toForm

thisform.txtCusNo.value = toForm.txtCusNo.Value

etc.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform