Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 tushar Kanvinde
 To: Gerrit Masee
  Where is Gerrit Masee?
 Gerrit Masee
Subject: RE: "binding" two comboboxes
Thread ID: 112223 Message ID: 112236 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Monday, November 06, 2006 2:02:02 PM         

> Hi all,
> Maybe an easy one, but I am puzzled some time on this.
> I have a table "medications" with 2 field: "brandname" and "genericname".
> I have a grid with 2 collumns, each with a combobox.
> Now this is what I want: when the user selects a brandname, the combo with the genericname has to change as well
> and vice versa.
> Any ideas on how to achieve this?
> Thank i.a.
> Gerrit Masee
> Hmm, found the solution myself: with the Listindex property!
> Gerrit

I am confused about the vice versa partof your question. In case you move about in the generic combo, your brandname combo will get a reduced number of items depending on what you selected in the generic combobox. If after that you move in the brandname combo, your generic combo will get a reduced number of items depending on what you have chosen in the brandname combo. In fact you should be left with only one item in the generic combobox. The only way for the user then to get all the items in the combobox will be to restart the form.



"binding" two comboboxes Posted by Gerrit Masee @ 11/6/2006 12:35:43 PM
RE: "binding" two comboboxes Posted by Mike Gagnon @ 11/6/2006 1:43:25 PM
RE: "binding" two comboboxes Posted by tushar @ 11/6/2006 2:02:02 PM