Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you programmatically select an item in a list box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00353912
Message ID:
00354229
Vues:
15
thisform.TreeView1.Nodes(3).Selected = .t.
thisform.TreeView1.Nodes("mynodekey").Selected = .t.

>How do you do the same in a treeview
>Peter
>
>
>>>I have a list box. It has a sql row source, and no control source. I want to programatically make a particular item selected. I've tried all sorts of ways but none of them work.
>>>
>>>Any ideas? All help appreciated.
>>
>>
You can set its value, displayvalue or listindex.
>>
myListbox.Value = "SomeValueFromSQLCursor"
>>myListBox.Value = 5 && 5th item
>>myListBox.ListIndex = 10 && 10th item
Cetin
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform