Sign in to follow this  
Followers 0
darkjohn20

Need help with _GuiCtrlListView_DeleteAll

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



The handle of the return value of the built-in functions or the handle of GUICtrlGetHandle()? Anyway, can you post the relevant code?

Share this post


Link to post
Share on other sites

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.

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