Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refer the control in the calling form or parent f
Message
 
 
À
05/09/2013 02:39:52
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 XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01582256
Message ID:
01582280
Vues:
77
I prefer a separate method for updating the values, which prevents any object references that keep the forms dependent on each other.

Create a method in FormB that you call after instantiating FormB:
DoUpdateValues()
LPARAMETERS toFormA
THIS.txt.Value = toFormA.txt.Value
*-- etc
When calling FormA call this method and pass the form to the method:
DO FormB NAME loFormB
loFormB.DoUpdateValues(THIS)
>Hi,
>I have a form to call another form, let say Form A calling Form B,
>I want to assign the textbox control value in Form B which is value of the textbox control from Form A.
>
>For example:
>Form A -> thisform.txtclientcode.value = "ABC"
>
>Form B -> thisform.txtclientcode.value = Form A.txtclientcode.value
>
>I need to passing about 20 values from Form A to Form B, using Array or other method ?
>Which is better method ?
>
>Please advise.
>Thanks.
>Derek Yim
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform