Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call the specific form when there are two on scre
Message
From
20/06/1998 09:21:02
 
 
To
20/06/1998 09:10:34
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00110205
Message ID:
00110211
Views:
20
>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.
---------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform