Itemdata

Itemdata

Anonymous
Not applicable
163 Views
4 Replies
Message 1 of 5

Itemdata

Anonymous
Not applicable
Can anybody tell me how to set like ITEMDATA in VBASIC in AutoCAD to set the
index for a combobox, or how to set an item in a combobox

Thanks

Gustavo Guidi
gguidi@powernet.net.ar
0 Likes
164 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Unfortunately, there is no ItemData equivalent in VBA's listboxes or
comboboxes.

--
Tools you can use: get your free copy of ProPack
http://www.acadx.com

"Gustavo Guidi" wrote in message
news:BD6CD05C6910E8627964E0E0FEAFADD7@in.WebX.SaUCah8kaAW...
> Can anybody tell me how to set like ITEMDATA in VBASIC in AutoCAD to set
the
> index for a combobox, or how to set an item in a combobox
>
> Thanks
>
> Gustavo Guidi
> gguidi@powernet.net.ar
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks Frank, but can you tell me how can I set a member of a list,
thinking that this set could change depending on others parameters ?
0 Likes
Message 4 of 5

Anonymous
Not applicable
To add a single item to the list box, use the AddItem method just as you do
in VB (Listbox1.AddItem "Test", 0). To change an existing item, use the List
property (Listbox1.List(0) = "Test2"). To set or get the entire list in a
single shot use the List property with no index.

Look for a thread named "MDT & VBA Lit boxes" by MattH, 10/2/00. There's a
dvb in tht thread that shows how to change values in a list based on a user
selection in a different list. Hope it helps.

--
Tools you can use: get your free copy of ProPack
http://www.acadx.com

"Gustavo Guidi" wrote in message
news:4B90ED2356565900869862ACAD4682C5@in.WebX.SaUCah8kaAW...
> Thanks Frank, but can you tell me how can I set a member of a list,
> thinking that this set could change depending on others parameters ?
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
Tank you again Frank
0 Likes