Can't find anything about how to do this in VB.
I think there is a way to load the drop down just by passing the list and not looping?
I want to sort the items A-Z which is why I'm doing this.
I think there is a way to load the drop down just by passing the list and not looping?
I want to sort the items A-Z which is why I'm doing this.
Code:
'load table names, in order to sort
Dim TableNames As New List(Of String)
TableNames.Add("Choose...")
TableNames.Add("SOWTimeReporting")
TableNames.Add("SOWVendors")
TableNames.Add("SOWLog")
TableNames.Add("SPMID")
TableNames.Add("SOWTimesheet")
'load list into drop down
'Me.ddlTableNames.Items.Add(TableNames)
For a = 1 To UBound(TableNames) ' <<<< Issue here
Next
[/code
DougP