Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing one form from another
Message
From
11/06/2003 03:00:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/06/2003 00:35:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00798498
Message ID:
00798777
Views:
18
>dear cetin,
>
>many thanks for your kind advice. however, i still need some more help.
>
>when i insert the code line you suggested and execute the pgm, i get an error msg saying "NO PARAMETER STATEMENT FOUND" when the FIND FORM is executed.
>
>To overcome this i put a parameters statement in the INIT event of the FIND form as follows - PARAMETERS oForm
>
>and, in the AfterRowColChange event of the grid on the Find form i have inserted the line oForm.cCodeNo = ThisForm.txtCodeNo.Value where oForm.cCodeNo is the property that i want to reset which is in the calling form and ThisForm.txtCodeNo.Value is the textbox on the Find form.
>
>but, when the grid is displayed, i get the error message - "Object oForm is not found"
>
>how do i overcome this situation ?
>
>with sincere thanks once again.

* Find form.init
lparameters toForm
this.addproperty('oForm', toForm)
*if an old version of VFP manually add property oForm to find form and
* this.oForm = toForm

*Anywhere you need to access caller form
thisform.oForm.cCodeNo = ThisForm.txtCodeNo.Value
* You can do this too
* thisform.oForm.Refresh && Or any other method

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform