load'misc'
   prompt'3 4 5 6'
3 4 5 67 8 90 33
7 8 90 33

2007/11/8, Shaw, Ewart <[EMAIL PROTECTED]>:
>
> In pre-GUI days, it was often convenient to output a prompt
> and then input a response on the same line.
> So the user would see something like:
>
>   Sex(M/F):       NB. result of first prompt
>
>   Sex(M/F): M     NB. user responds
>
>   Sex(M/F): M     NB. what the user sees after hitting RETURN;
>   Age(yrs):       NB. next response now awaited.
>
> It used to be possible to do this in the J execution window,
> in one version (J3?) using  wd 'smappend...',
> and in another (J4?) combining  (1!:1) 1  and  (1!:2) 2 .
> However,  1!:1&2  now automatically goes on to the next line
> after outputting its argument.
>
> Is it currently possible to prompt & receive input on the one line?
>
> Regards, Ewart Shaw
>
> J.E.H.Shaw      http://www.warwick.ac.uk/statsdept
> Ewart Shaw      http://www.ewartshaw.co.uk
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |        (\_ _/)
  (`-.  '--.)       (='.'=)
   `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to