On May 24, 2006, at 8:05 AM, Adam Ernst wrote:

On May 24, 2006, at 9:15 AM, Vincent Kroll wrote:


Am 24.05.2006 um 15:18 schrieb Emile Schwarz:


// Add one Row and fill its (two) cells
ListBox1.AddRow(-1) = "Width:" + Chr(9) + Str(pWidth)


What about:

ListBox1.AddRow.Split( theText, [a delimiter])
or
ListBox1.AddFolder.Split( theText, [a delimiter])


Neither of these syntaxes make any sense whatsoever, in my opinion. How about simply:

ListBox1.AddRow "Width:", "Str(pWidth), "ThirdCol"

Just make AddRow accept a ParamArray of additional items.

In any case, this has already been reported, so there's no need to talk about it on the NUG. Just sign on:

http://realsoftware.com/feedback/viewreport.php?reportid=dqbmbnpj


Extends can be helpful:

Sub nAddrow(Extends lb as listbox, s as string)  // in a module
  lb.Addrow ""
  lb.Cell(lb.LastIndex, -1 ) = ReplaceAll(s, ",", chr(9))
End Sub

Then addrows like this:

ListBox1.nAddrow("Column1, Column2, Column3, Column4")


Best regards,

Jack

_______________________________________________
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>

Reply via email to