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
 
À
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:
00110297
Vues:
17
Still another possible method is to have the second (search) form be a modal form. A modal form can pass a value back to the form that called it.
** In the Click() method of the "Search" button
cID = ''
DO FORM MySearch TO cID

if !empty(cID)
     ** Go to the new record
     ** Refresh the form
else
     ** No record returned - user clicked Cancel or other failure
endif

**In the UNLOAD method of the MySearch form
return cNewCID
** cNewCID is the ID code that the user chooses in the MySearch Form
Barbara

>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.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform