I want to change the contents of the listbox (in this test by button):
Code: Select all
global wordList := "word-1|word-2"
Gui, Add, ListBox, x005 y005 w170 h120 multi vWords, %wordlist%
Gui, Add, Button, x200 y005 w120 h020 gChange, Change content
Gui, Show, x800 y300 h150 w350
Return
Change:
Gui, Submit, noHide
wordList := "word-3|word-4"
GuiControl,, Words, %wordList%
Return
GuiClose:
ExitApp
Whre is my error?
Thank You for any help
Klaus Daube