Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting items in a listbox that are linked to a view
Message
 
À
15/12/2004 09:37:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00969180
Message ID:
00969434
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform