Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox and ListBox
Message
From
28/11/2001 09:38:10
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586449
Message ID:
00586926
Views:
23
I don't know if the itemdata property exists in VB.NET. I was able to bind the dataset to the listbox by using:

ListBox1.DataSource = lADO.objDataSet.Tables("employee")
ListBox1.DisplayMember = "empname"
ListBox1.ValueMember = "id"

However, I can't figure out how to retrieve the "id" or "empname" information.
Just for test purposes. I would like to iterate through the items in the listbox and display in a message box the empname and id. I can't believe I am having such trouble with an elementary thing. This was easy in VFP. I appreciate the help.

Randy Belcher
Randy Belcher
AFG Industries, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform