if you need to see something from within a verb running then it is
easy to use smoutput to print into the session manager what it is you
want to investigate.

In order to print something out to a file you must first convert it to
character etc and it may not be that easy for a beginner.



2010/3/23 Sprague, Webb (OFM) <[email protected]>:
> Hi all,
>
> Forgive my newbieness,... but what does the following snippet mean (from
> some J code that it is now my responsibility to maintain):
>
> if.  rtn e.<'NO'  do.
>
> I understand "if." And "do.", just not the part in the middle; I assume
> it has something to do with testing for equalituy.  "rtn" is the value
> given by a window interface thingy.
>
> On a related note, I would like to print a string with the value of
> return and some text concatenated to it, but the following snippet gives
> me a "domain error"
>
> 'return value:', rtn 1!:2(2)
>
> I think rtn might be boxed, or something, but I can't figure it out.  If
> it were a C-ish language, I would be writing "printf("return value: %s",
> rtn);".
>
> Finally, if there is a way to unbox a variable, it would be great to
> hear about it.
>
> Thanks!
>
> ---
> W. Webb Sprague
> Forecast Analyst
> Office of Financial Management, Forecast Division
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: [email protected]
gsm: +3546985532
sími: +3544781286
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