Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 Tags
Subject: Grid question
Thread ID: 209341 Message ID: 209341 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Saturday, December 27, 2008 1:41:45 PM         
   


Hi all,

I have a ListBox, part of whose items are equivalent to the Text1.Values in a Grid.

For example, the Grid has the following in Column1.Text1:

KEYVALUE
........
X0871804
X0871805
X0871506
........

and the Listbox has the following (with only the date and the surname visible):

LISTBOX ITEMS
24/12/08 Rogers	                X0871804
24/12/08 Chambers               X0871506
........ ........		........
24/12/08 Jones                  X0871505
........ ........		........

In the Click() of the ListBox I will identify the key value using:

the_key_value = SUBSTR(MyListBox.Value,33,8)

What I would like to do is automatically navigate within the Grid using the ListBox.Click().

How do I find the row in the Grid whose Column1.Text1 value I know from MyListBox.Click()?

And how do I move the Grid record pointer to that row and highlight it?

Thanks,

Russell.

ENTIRE THREAD

Grid question Posted by Russell Hill @ 12/27/2008 1:41:45 PM
RE: Grid question Posted by tushar @ 12/27/2008 3:20:54 PM
RE: Grid question Posted by Russell Hill @ 12/27/2008 10:25:46 PM
RE: Grid question Posted by tushar @ 12/28/2008 9:54:42 AM
RE: Grid question Posted by Cetin Basoz @ 12/27/2008 4:25:33 PM
RE: Grid question Posted by Russell Hill @ 12/27/2008 10:24:09 PM
RE: Grid question Posted by Cetin Basoz @ 12/28/2008 10:10:17 PM