Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get value from search form and display records
Message
From
14/06/2007 12:28:03
 
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:
01233097
Views:
12
>Where to put this "ThisForm.oCallingform.RefreshFromOutside()" in Search Form or in Caller form.
>
>In the Search form.
>
>As I create oCallingForm property in Search Form and
>
>Correct.
>
>RefreshFromOutside Method in CallerForm.
>
>Correct.
>
>And in this (RefreshFromOutside Method) I put this code
>(ThisForm.contMaster.Basecont1.cboSalesOrder.InteractiveChange()).
>>
>>Please suggest ..
>

>
>Everything is fine, except that we may also need to pass the cursor (result of the search) back to the Caller form. Do we need to do that?
>
>If yes, few techniques:
>
>1. Let's Search form to share Calling form's DE, e.g. make search form to use default DE. In this case the cursor created in Search form will be visible in the caller form.
>
>2. Pass it back and forth using CursorToXML/XMLToCursor functions.
>
>3. Use ideas from the FAQ by

When someone wants to pass a cursor from one form to another then the most consistent technique is to create this cursor in the calling form and assign its alias to one of the properties of the calling object.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform