Sorry for the multiple post but my last message was incomplete & a bit
messy!

I want to define a local multiline noun within a verb. If I put the ')'
for the noun in the first position the verb definition terminates. If I
indent the noun definition lines with a tab (read this in an old forum
post), the verb seems to define OK but when I run it J becomes
unresponsive. That is I can still interact with J (access menus & type
stuff), but the menu commands and (including exit) and sentences don't
seem to execute (Have to "End Task" from the Task Manager).

Is this possible or is there another solution other than appending to
the line over multiple lines (much less elegant)?

GetPrices=: 4 : 0
 sqlcmd =. 0 : 0
 SELECT * FROM price_profiles
 WHERE cl_id=? AND rv_validuntil Is Null
 ORDER BY pr_mfd;
 )
profiles=. > _3 {."1 }. y query__db sqlcmd
'pp mfd prc'=: |: data
profiles=. ((_1}.pp~:1|.pp),1) <;.2 profiles
)

By the way the verb isn't finished yet so don't get too worried about
that!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to