Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN
Message
From
10/12/1999 13:11:54
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00301827
Message ID:
00301858
Views:
31
>>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

Hi Ed ,
Nice to meet you again :]

I have some idea with your process now ,but am I need to define the form b4 call the form replace ?
If so ,can you tell me how ?
Thanx.
JK
I'm a beginner of Visual Foxpro 5.0 ,thanx for help ^^
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform