hopefully this will be a quick (easy question)

ok my list box is sorted so when i add an item via AddItem i want to know what index it added it to because i need to set the ItemData for that new index i just added

i thought i coulde do the following..

dim newIdx as integer
newIdx = list.AddItem "Text"

list.ItemData( newIdx ) = ID

any suggestions as to how i can do something like the code above?

thankx,