Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 To: John Pitt
  Where is John Pitt?
 BMT
 Vietnam
 John Pitt
 Tags
Subject: RE: Search in table browser
Thread ID: 155083 Message ID: 155141 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Wednesday, December 26, 2007 5:33:11 AM         
   


> >
> > Since you are in version 8, why not use a grid?
> >
> > Mike Gagnon
> > Refox XI +(English version)
>
> ***!***
> i know, but that is in my prog convert from VF6 (if use a grid i have to change lots of code)
> Thanks for your answer!

Maybe something like this?
m.searchstring = ''
FOR m.X = 1 TO 26
  m.lcCmd = "ON KEY LABEL " + CHR(64+m.X) MYSEARCH(@m.searchstring,'" + CHR(64+m.X) + '")'
  &lcCmd.
ENDFOR m.X
BROWSE ....
RETURN

mysearch.prg
LPARAMETERS m.tcString,m.tcChar
m.tcString = m.tcString + m.tcChar
SEEK m.tcString
IF NOT FOUND()
  *Warn the user.
ENDIF
RETURN


Mike Yearwood
www.foxridgesoftware.com
President: Toronto Ontario FoxPro User's Group

ENTIRE THREAD

Search in table browser Posted by John Pitt @ 12/24/2007 12:41:09 PM
RE: Search in table browser Posted by Mike Gagnon @ 12/24/2007 12:53:53 PM
RE: Search in table browser Posted by John Pitt @ 12/24/2007 1:05:25 PM
RE: Search in table browser Posted by Mike Gagnon @ 12/24/2007 1:32:04 PM
RE: Search in table browser Posted by John Pitt @ 12/24/2007 2:31:41 PM
RE: Search in table browser Posted by Mike Yearwood @ 12/26/2007 5:33:11 AM
RE: Search in table browser Posted by Ken Murphy @ 12/24/2007 1:37:30 PM
RE: Search in table browser Posted by suhas hegde @ 12/24/2007 3:10:20 PM
RE: Search in table browser Posted by Mike Gagnon @ 12/24/2007 9:47:54 PM
RE: Search in table browser Posted by suhas hegde @ 12/25/2007 4:35:41 AM
RE: Search in table browser Posted by Mike Gagnon @ 12/25/2007 1:38:53 PM