Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting items in a listbox that are linked to a view
Message
De
15/12/2004 11:06:16
 
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:
00969470
Vues:
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


Bradley,

What I meant is, say you have 4 items in the listbox:
      Listbox      lvCorrType
1.    Item #1         Item #4
2.    Item #2         Item #1
3.    Item #3
4.    Item #4
The first item from view, matched with the last item in the listbox. Then when you SKIP the view (Item #1), the listbox has reach end of list. So "Item #1" never gets selected.

I made a working simulation based on cursor only. I can send you the sample if you want.
Regards
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform