Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the object value from parent form ?
Message
 
 
À
19/05/2014 23:01:04
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01600260
Message ID:
01600261
Vues:
59
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform