>I have a form which call another search form.
>
>The second form is a search form. How can I use the form to search for a record then refresh() the main form?
>
>I am not sure how to call the form to refresh().
>I mean if I have only one form, I can use
>
>_screen.activeform.refresh()
>
>Now I got two form on the screen, how can I do?
>Please show me a simple example.
You can use a variable to launch the first form and then in the second one refers to it with this variable name:
do form fistform name ppp
in the second one:
ppp.refresh()
Other way to go is passing the form as a parameter: in the firstform:
do searchform name searchform with thisform
in the init event of the search form:
parameters firstform
store 'firstform' in a public variable or in a search form property and the you can use it to call the first form
Saludos,
A.G.P.
---------