Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_SCREEN
Message
De
10/12/1999 13:00:11
 
 
À
10/12/1999 12:47:23
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00301827
Message ID:
00301847
Vues:
29
>Hi ,
> Now ,I have two form named mainform and replace.
> When press buttom replace in mainform ,it will call form replace .
> In the form replace ,the user can enter the text for the replace process .
> Here is the problem :
> I wanna replace the context of editbox in mainform ,but I really doubt how can I pass though the var. from form replace to form mainform .
>

Pass an object reference (thisform) into the replace form, providing a reference to the main form. Save it in a form property. When you want to update the control on the main form, reference it using the saved reference:

eg:

Create a property of form replace called oMainForm

In the Init of Replace:

LPARAMETERS toParentObject
this.oMainForm = toParentObject

when you want to update the control on the main form:

thisform.oMainform.edit2.value = whatever you want it to be

> I try to use _screen.mainform.edit2.value ,but it said there is error with that .
>
> Do you have any idea ?
> Thanx in advise !
>JK
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform