Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get value from search form and display records
Message
 
À
14/06/2007 05:39:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01232869
Message ID:
01232873
Vues:
20
>Hello everybody
>
>I developed a search form(searchso.scx) and I call this search form from another form(soedit.scx) on which there is a combo box. In the interactivechange event of the combox I put the code to display the records. It is working fine and displaying the records. The question is, how can I display the records on soedit.scx after getting the required result from search form(searchso.scx). Means when I return from search form, it should play the event of the interactivechange of the combobox. The Value which I want to get form search form is (sono) which is the value of combo box.
>How can I do so, please guide me... Thanks
>
>Please note that the search form is modal.
>
>Saif

Where you call the Search form:
lcSearched = []
DO FORM SearchForm LINKED TO lcSearched
IF NOT EMPTY(lcSearched)
   *** Do the search here
ENDIF
In your search form, add a property return_value. In Init event of that form initialize it to empty data type (depending of what you return)

There where the user confirm the search store the value of the combo in that property:
thisform.return_value = thisform.Combo1.Value
In UNLOAD event of the Search form:
RETURN thisform.return_value
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform