> >
>
> Sorry! I think I have to be specific with my question?
>
> This is the scenario:
>
> I have this main form with a textbox, a search button and an execute button. The other other form is the search form.
>
> This is how I want it to work:
> 1. The user will open the form then click the search button then the second form will appear (search form with a gridbox in it).
> 2. When the second form appears the user will select (ex. an item number). On the selected value the user will double click it and the value of the grid will go to the textbox of the main form and the search form (2nd form) will disappear.
>
> This is my code but non of the grid value goes to the textbox of the main form. See below code:
>
> Main form (as PO)
>
> search button click:
> DO FORM \forms\search.scx
>
>
> On the search form.
>
> grid.double click:
> po.text1.value = thisform.grid1.column1.text1.value
> thisform.release
>
>
>
> Am I missing something with my code.
>
> Please help.
>
> Thank you.
>
>
> Vannie
you can do it in multiple ways, one is this:
1. when you call search form on button's click declare a private variable say pcReturnValue
*commandbutton.click
private pcReturnValue
pcReturnValue= ""
do form search
thisform.text1.value = pcReturnValue
*on your search form grid's doubleclick
pcReturnValue = thisform.grid1.column1.text1.value
thisform.release
2. you can use search form grid's recordsource on your first form directly if you are not closing it.
-----------------------------------------------------------------------------------------------
Regards
Surinder Singh
Email:
sur200@indiatimes.comCheck my blog for details:
http://weblogs.foxite.com/sur200----------------------------------------------------------------------------------------
*If you understand what you're doing, then you're not learning anything.