In a message regarding Re: ListBox: how do I add_and_fill a new Row
(AddRow) dated Wed, 24 May 2006 15:04:43 -0700, CV said that ...

> Extends can be helpful:

I use something very similar, which doesn't have problems with embedded
commas. Tabs can be embedded or not (or a mixture, as below).

Sub AddrowEX(Extends lb as listbox, ParamArray xTra As String)
  lb.Addrow ""
  lb.Cell(lb.LastIndex, -1 ) = Join(xTra, chr(9))
End Sub

Can be used like this:
  dim s as String
  s = "col1" + chr(9) + "col2"
  ListBox1.AddRowEX "col0",s,"big, bad wolf"

--
Steve Garman
Using REALbasic 2006r2 Professional on Windows XP Pro



_______________________________________________
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