Jon,
>
>
> 1.  Why is the shape of  > 0{"1 data  1 5 ? I had to do "," to reshape it to 
> 5 so I could append to the  string 'set lb items '


Were you expecting a different shape or just wondering why it's 1 5?
It's 1 5 because it's the list of items that match the pattern icons

See:

1!:0 <'*.*'

On my computer, the shape is 9 5 because there are 9 entries in the
current working directory

$ (1!:0 <'addons')
1 5

0{"1 (1!:0 <'addons')
┌──────┐
│addons│
└──────┘

0{:: 0{"1 (1!:0 <'addons')
addons

> 0{"1 (1!:0 <'addons')
addons


>
> 2. To append a name to the items of a listbox, is my method standard? It 
> seems to work, so I'm happy with it.
>

On my system, when I replace <'icons' with <'*.*', the last item in
the select is:
uninstall.exeupdatejqt.cmd

I think you need to add LFs at the end of each item instead of just using ,

I'm sure there are better ways to do it, but this is what I came up with:

wd 'set lb items ',  (> (4 : 'y,LF,x') each/ (0{"1 data))

[idea from: http://www.jsoftware.com/jwiki/Vocabulary/ampdot]


Also, last tip, you may want to try posting in plain text or using
ctrl+shift+v... Your text comes out as double spaced when you paste
from jhs/jqt. Don't worry, I've made that mistake a hundred times and
will likely continue to do so.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to