Listbox Dublicates - Forum

Forum Navigation
You need to log in to create posts and topics.

Listbox Dublicates

Hi guys

Can someone help me with script to remove duplicate names from my ListBox.

After I load text into my ListBox I want to click a button that must remove all duplicate names within the ListBox

Thank You

proforma.guyot has reacted to this post.
proforma.guyot

ListBoxSize "ListBox1" "[Count]"
Loop "1" "[Count]" "[i]"
ListBoxGetItem "ListBox1" "[i]" "[Stroka[i]]"
EndLoop
ListBoxDeleteItem "ListBox1" "All"

Loop "1" "[Count]" "[i]"
ListBoxFindItem "ListBox1" "[Stroka[i]]" "[Found]"
If "[Found]" "=" "0"
ListBoxAddItem "ListBox1" "0" "[Stroka[i]]"
EndIf
EndLoop
DeleteArray "[Stroka]" "All"

 

as3856

proforma.guyot and nicox have reacted to this post.
proforma.guyotnicox

Hi as3856

Thank You Very Much!.... Works Perfectly!