Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call the specific form when there are two on scre
Message
De
20/06/1998 09:21:02
 
 
À
20/06/1998 09:10:34
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00110205
Message ID:
00110211
Vues:
19
>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.
---------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform