try using control id and separate with LF prepending * wd 'set lb *','red',LF,'green',LF,'blue'
--- "Saunders, John (TQEH)" <[EMAIL PROTECTED]> wrote: > Hi everyone I'm trying to make a form using the form editor and can't > populate a listbox please see code below. Everything is written by the > form editor except the line wd 'set listbox red green blue'. > Actually I'd like to put the result of data driver verb ddsrc'' in a > listbox to show available data source names, any help much appreciated > Thanks > John > > TST=: 0 : 0 > pc Tst; > menupop "File"; > menu new "&New" "" "" ""; > menu open "&Open" "" "" ""; > menusep; > menu exit "&Exit" "" "" ""; > menupopz; > xywh 136 8 34 12;cc ok button;cn "OK"; > xywh 136 23 34 12;cc cancel button;cn "Cancel"; > xywh 0 0 50 50;cc lb listbox lbs_sort; > pas 6 6;pcenter; > rem form end; > ) > Tst_run=: 3 : 0 > wd Tst > NB. initialize form here > wd 'pshow;' > ) > Tst_close=: 3 : 0 > wd'pclose' > ) > Tst_cancel_button=: 3 : 0 > Tst_close'' > ) > Tst_ok_button=: 3 : 0 > ) > Tst_lb_button=: 3 : 0 > wd 'set listbox red green blue' > ) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
