Listbox numeric value not ToString?

bbelect

Member
Joined
Apr 20, 2007
Messages
14
Programming Experience
1-3
This is just a quick one, why when displaying a numeric value in a combobox is the tostring method not needed.

Thanks
 
when reading values out of a collection in VS 2003, it's best to always know what's in there first so you can pull the stuff out by converting the item(s) to the type they were when they were stored in the first place

I.E. Dim AString As String = CStr(ComboBox1.Items.Item(0)) or Dim AnInteger As Integer = CInt(ComboBox1.Items.Item(0))
 
Back
Top