Is there anyone out there still using J602 Form Editor?

I have a problem with listbox.

I want to assign a variable to the word in the list selected by cursor.

I’m using code borrowed from the Lab controls demo:



<Create listbox with Id bxlist in form>



I’ve put the code in ‘Ok’ button and created an edit control (name)to
display the selected noun. I’m getting  nothing in name:



list1_ok_button=: 3 : 0

NB.wd'cc bxlist listbox ws_vscroll lbs_multiplesel'

list=.;:'apples bananas cherries dates'

wd 'set bxlist ',;list,  each LF

)



list1_name_button=: 3 : 0

wd 'set name ',bxlist

)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to