Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Edwin Lopez
  Where is Edwin Lopez?
 Valenzuela City
 Philippines
 Edwin Lopez
 To: Pratik Singh
  Where is Pratik Singh?
 Kota
 India
 Pratik Singh
 Tags
Subject: RE: Search in another Form
Thread ID: 373670 Message ID: 373674 # Views: 54 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Databases, Tables and SQL Server
Date: Monday, March 25, 2013 8:59:43 AM         
   


> Hi All
>
> I want to know that how is possible to search record or text from other form.
> suppose i have parent form and child form. i press character in parent form and search in child form.
> like attached file.
>
> Learning never ends
>



*****************************************************************************************


** MAIN FORM
**** TEXT1.VALID()
DO FORM 'childForm' WITH THIS.VALUE


** CHILD FORM
**** FORM.INIT()
PARAMETERS lcSearch


&&--- execution/statement



and if you are using a
FORMSET
w/c you have 2 forms


** MAIN FORM
**** TEXT1.INTERCHANGE()
THISFORMSET.childForm._search(THIS.VALUE)


** CHILD FORM
**** THISFORM._search() -- create a method _search under your CHILD FORM
PARAMETERS lcSearch
** your search code






*****************************************************************************************


Having my (coffee) break
Edwin Lopez
Jr. Programmer

ENTIRE THREAD

Search in another Form Posted by Pratik Singh @ 3/25/2013 7:42:36 AM
RE: Search in another Form Posted by Borislav Borissov @ 3/25/2013 8:51:34 AM
RE: Search in another Form Posted by Pratik Singh @ 3/26/2013 7:39:24 AM
RE: Search in another Form Posted by Om Rajan @ 3/26/2013 8:10:12 AM
RE: Search in another Form Posted by Borislav Borissov @ 3/26/2013 8:29:47 AM
RE: Search in another Form Posted by Edwin Lopez @ 3/25/2013 8:59:43 AM
RE: Search in another Form Posted by Borislav Borissov @ 3/25/2013 9:46:19 AM
RE: Search in another Form Posted by tom knauf @ 3/25/2013 1:55:50 PM