Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting items in a listbox that are linked to a view
Message
 
To
15/12/2004 09:37:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969180
Message ID:
00969434
Views:
9
Herman,

Hi. I'm not sure If I understand your question. Here are the properties i have set in the listbox:

Bound Column: 1
Control Source: lvCorrType.cCorrCode
Row Source: CorrTypeCodes.cCorrCode, cCorrDesc

I chose the row source to be a lookup table, because I want the user's to be able to add codes at any time. Then, those new codes will be in the listbox. Since the users can select more than one item from the list box, I set the control source of the listbox to a child view(lvCorrType). If the lvcorrtype.cCorrCode matches any items in the listbox, then I want those items to appear selected. Is there a better way to do this? The items in the listbox will stay in the same order all the time. The items appear selected in the listbox if I trace the code or if I navigate to another page, and then return to the page where the listbox is. It's weird.

I appreciate all your help.

Regards,
Bradley
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform