Hi,
Am 23.03.2006 um 19:43 schrieb CV:
How can I reproduce this? Like this, from a button, with an item in
Cell(0,0) only?
dim s as string = ListBox1.Cell(0, -1) // get a row
ListBox1.CellTag(0,7) = s // assign the row to the cell tag of a
nonvisible column
dim sRetrieve as string = ListBox1.CellTag(0,7) // retrieve the
string from the celltag
break // look a sRetrieve
There is more:
I have a listbox := columncount = 4
I create some rows with me. addrow "sometext", and after addrow I
execute me.Cell( me.LastIndex, 2) = "sometext".
Now I have some rows, which first and third cells are filled with
some text.
I set Dim s As String = me.Cell( aValidRowNumber, -1)
I expect a string value like this:
'sometext' (Cell 1) [tab] empty (Cell 2) [tab] 'sometext' (Cell 3)
[tab] empty (Cell 4)
But I'll got this:
'sometext' (Cell 1) [tab] 'sometext' (Cell 3) rest in peace ?
Oups, what a pity ...
That's absolutely wrong. It's in contrast to fill a row with tab-
delimited text.
I know that if you load a listbox from a tab-delimited string, s,
using
ListBox1.AddRow ""
Listbox1.Cell(ListBox1.LastIndex,-1) = s
where s contains more fields than ColumnCount, Rb overrides
ColumnCount and adds more visible columns to my listbox. I feel
this is a bad feature at least, a bug in my view. Some may not
agree. This is tied in with the unfortunate situation that Rs has
not documented the existence or behavior of accessible nonvisible
columns in the listbox. So perhaps nothing in this regard can be
called a bug. However, it's astonishing to me that Rb will override
ColumnCount in this case of using the shorthand -1 notation only.
But you seem to be coming at this from a slightly different
direction, which is why I'd like to be able to duplicate the
behaviour described in the first part of your post, but I haven't
yet been able to.
I think filling the listbox with tab-delimited text and overriding
the columns may be OK for showing all visible values. Perhaps there
should be a property, which may adjust the amount of added columns,
if a listbox will be filled with tab-delimited text.
--
Best vkroll
_______________________________________________
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>