Sign in to follow this  
Followers 0

Update some column in ListView to empty string

3 posts in this topic

I have ListView where I modify data through detail window.

When in detail is clicked OK I do something like this:

$item = GUICtrlRead($listview); selected
    $line = _
        GuiCtrlRead($col1) & '|' & _
        GuiCtrlRead($col2) & '|' & _
    GuiCtrlSetData($item, $line)

But when I have col2 with some value

and need to clear it, it's not working,

because of this (From HelpFile):

For ListViewItem control :

To update a specific column just forget about the others ie "||update" to update 3rd column.

AutoIt ignores columns without values instead of clearing them to empty string.

I tried workaround:

GuiCtrlSetData($item, ' | | | | | ')
    GuiCtrlSetData($item, $line)

Set one space to each column before update column values.

It works fine, but I don't want to have one space value in columns.

So please help me, how to do that.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0