1. RE: How to change ListView Text?

> -----Original Message-----
> From: Tony Steward [mailto:figjam at nlc.net.au]

> G'Day all,
> Can anyone tell me what I'm doing wrong, I want to change the 
> text in a
> column in list view. Below is an abbreviated version of what 
> I have tried.
> 
> procedure listname_onclick
> rowselected = getLVSelected(ListName)
> setLVItemText(ListName, rowselected[1], 3, "OUT")
> 
> I use rowselected[1] in case more than one row is selected. I 
> know I can set
> singlesel.
> The columns are 0 based I think so the 3 is actually the 4th 
> column you see.

Yes, the columns are zero-based.  Have you tried changeLVItemText()?
Looking at it, I'm not sure why setLVItemText() even exists (as is), but
setLVItemText() should probably be deleted, and changeLVItemText() should be
renamed to setLVItemText().

The reason is that Win32Lib keeps track of the text for a listview, and
setLVItemText doesn't affect Win32Lib's records.  It just sends a message to
the listview that's probably ignored, since it doesn't keep track of things
itself.

Derek, maybe a last minute change for .56? :)

Matt Lewis

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu