Hi all,
in a current project, I am using a ListBox to report data and I use:
ListBox1.AddRow "Width:"
LocRow = ListBox1.LastIndex
ListBox1.Cell(LocRow,1) = Str(pWidth)
OK, I can reduce it to:
ListBox1.AddRow "Width:"
ListBox1.Cell(ListBox1.LastIndex,1) = Str(pWidth)
or I can expand it using some more lines: one line for comments, and another
empty line.
and I remember the infamous "-1" trick and I began to dream:
// Add one Row and fill its (two) cells
ListBox1.AddRow(-1) = "Width:" + Chr(9) + Str(pWidth)
"You may says I'm a dreamer", but remember: "ListBox1.Cell(ListBox1.LastIndex,
-1)". Very usefull when you have more than two Columns (in this example); adding
what I wrote above will complete it.
What do you think of that ?
Is it worth a feature request ?
Cheers,
Emile
PS: don't tell me "it already exists", please...
[it was irony, I want to hear from you if it already exists in REALbasic
2006r2!]
BTW: the status line gives this syntax:
ListBox1.AddRow("Width:")
OK, why not, this syntax pass the syntax checker and compiles correctly...
_______________________________________________
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>