about listbox and weblistboxes.

LastName = UserRequestListBox.cell(row, 0)

I don’t like the above code… it ‘knows’ that the first name is in column 0.
Isn’t there a method to identify the column by it’s name?
I know you can tag rows and cells… but is there a better method of identifying a column?

Columns don’t have names, so there is no name that you can refer to.

They can have column headers, but are not required to do so. You could certainly create your own ListBox subclass (or extension method) that searches the column headers using a supplied name so you could use syntax like:

[quote=32003:@Paul Lefebvre]Columns don’t have names, so there is no name that you can refer to.

They can have column headers, but are not required to do so. You could certainly create your own ListBox subclass (or extension method) that searches the column headers using a supplied name so you could use syntax like:[/quote]
This is the approach I use.

I’ve used this approach before and works pretty well…

I sometimes define constants for those references.
ColName = 0
ColAddress = 1
ColPhone = 2

good idea, never thought of doing that

Thanks… all good suggestions.
Merci beaucoup!