|
Post by tsh73 on Mar 16, 2019 8:11:28 GMT -5
Found on LB5a347 contact_lb5.bas holds in 348
'old way doesnt't work if sel$ = "four" then #win.combo "select two words" 'new way works if sel$ = "five" then #win.combo select("two words")
'in combobox, "select several words" doesn't work 'new way select("several words") works 'happened ln LB5a347 ' contact_lb5.bas 'then seting combobox #main.stage 'on selecting a person from a listbox #main.contacts 'holds in LB5a348
nomainwin a$(1) = "one" a$(2) = "two words" 'two words a$(3) = "three" a$(4) = "four" a$(5) = "five" combobox #win.combo, a$(),[doCombo],10,10,120,200 open "Combobox Demo" for window as #win #win "trapclose [quit]" #win.combo "selectindex 1" wait
[quit] close #win end
[doCombo] #win.combo "selection? sel$" notice "You chose ";sel$ 'old way doesnt't work if sel$ = "four" then #win.combo "select two words" 'new way works if sel$ = "five" then #win.combo select("two words") wait
|
|