Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get value from search form and display records
Message
 
 
To
14/06/2007 05:39:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01232869
Message ID:
01232885
Views:
17
>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

The is also a bit different approach to your problem than Borislav suggested.

Add to the Init of your search form
lparameters toCallingForm
thisform.oCallingForm = toCallingForm

and add a property oCallingForm to your search form.
This way you passed a reference to your Search form of the Caller form.

When you call your search form, do it like

do Form search with thisform.

In your Search form when you're ready to refresh the Caller form you'll do

thisform.oCallerForm.RefreshFromOutside()

In your other form add this method RefreshFromOutside and re-populate your combo in this method.

I'll search a thread for you where this idea was discussed in more details later.

BTW, Borislav participated in this thread (started by me) :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform