Jump to content

Recommended Posts

Posted

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) & '|' & _
        GuiCtrlRead($col3)
    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.

Thanks

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...