http://www.realsoftware.com/feedback/viewreport.php?reportid=dqbmbnpj
Evaluation - REAL Software on 2006-11-27:
"listbox.cell(row,-1) does this"
You're kidding.
It's out of the question to make an AddRow method that accepts a
variable number of arguments or an array? It's like 10 lines of code!
Actually, not "like," it is.
Here let me help you out. This one's on the house, since I know it's
pretty difficult to do:
Sub AddRow(Extends List as Listbox, ParamArray Cells as String)
dim i as integer
List.AddRow ""
for i = UBound(Cells) DownTo 0
List.Cell(List.LastIndex, i) = Cells(i)
next
End Sub
Sub AddRow(Extends List as Listbox, Cells() as String)
dim i as integer
List.AddRow ""
for i = UBound(Cells) DownTo 0
List.Cell(List.LastIndex, i) = Cells(i)
next
End Sub
Ta da! Yay! Convenience for all of us with two minutes of programming!
--
Seth Willits
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>