Jump to content

Recommended Posts

Posted

Ok, so when I start my script, my listview has no entries. DeleteAll at this point returns TRUE.

Then, when I add 50 entries and try to DeleteAll, it returns FALSE.

My ListView is made using built-in functions, and _GuiCtrlListView_AddArray works just fine (Placed in my code right after DeleteAll to refresh the whole ListView)

Is there anything that would be stopping this from running? I am using the correct handle, and just to make sure it would work in my function, I made the handle global.

Thank you.

Posted

Oops...Didn't realize there was more than one way to get a handle. Thank you very much Authenticity,

$ListView = Built-In Create List View

$hListView = GUICtrlGetHandle($ListView)

_GuiCtrlListView_DeleteAll($hListView)

works.

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
×
×
  • Create New...