Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox
Message
From
05/07/2010 08:33:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01471383
Message ID:
01471384
Views:
52
>I have two listboxes on a form, say a Country and a City.
>When I go up down the country ListBox, I just want to show the cities relevant to the specific country
>My List Boxes come from a Country and City table, the City table also having its parent (the Country) as one of the fields.
>
>How do I get the Cites to display on the listbox, but just those relevan tot the country that is currently highlighted.
>
>Thanks in advance.
>regards,
>Gerard

I believe you can reload the ListBox - clear it, and use AddItem() to add the items one at a time. Another option - if you prefer to bind the ListBox to a table or cursor - would be to set a filter, or to re-select the cursor.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform