Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep Drop Down List Boxes in Sync
Message
From
03/01/2001 06:30:08
 
 
To
02/01/2001 21:59:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458752
Message ID:
00458826
Views:
14
Hi!

Hmm, it seems you expect that record pointer in the view changed when you select record in the first (company) combobox. Than, if second combobox tied to view using control source, you just need to call refresh method of the second combobox after record pointer changed. Better do this in the Valid event of the first combobox - for comboboxes Valid seems called each time value changed.

It will be also much better if you tell exactly following properties and methods of both comboboxes:

Valid
InteractiveChange
BountColumn
BoundTo
ControlSource
RowSourceType
RowSource (or code that fills it)

etc.

This way problem could be figured out exactly.

>I have two dropdown list boxes on a pageframe that is bound to a view. The first box contains two columns company name and company id, it's bound to the id. The second box contains contact name and contact id for the current company, it's bound to the contact id of the view. The contact drop down list box does not stay in sync when I select another company from the treeview. When I select the second item for the same company the contact catches up. I am populating the list boxes in the activate of the page. The p-view contains company id and contact id and part info. I must be missing something ...
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform