Your logic should work but what if some error occur after setting that prevent the code to run into completion and jump to the `catch' branch? Will it also restore old setting there?
A word of caution for using bind is that it bind the noun at `compile' time. However it should be ok for this particular application. On Fri, 15 May 2009, bob therriault wrote: > Thank you bill, > > I was unaware of 'bind'. One advantage of having so many eyes on my > code is the depth of experience everyone brings. > > The method I used to set the drawing box was to set the global code > using 9!:7 according to the radio button pressed, display with those > characters and then reset to the viewer's original setting so that the > global code is only different during the use of update and does not > leave the viewers session in a different format. By using 9!:6 to > check the status in both display_run and display_resume, the form will > initialize correctly to the user's current choices. I would welcome > any advice you have on better ways to do this. My choice works, but is > not elegant (although I did enjoy using &. for the set/reset with > update). > > Cheers, bob > > On -May15-2009, at -May15-20098:58 PM, bill lam wrote: > > > Hi Bob, > > > > Will it reset global drawing box inside the catch codes? Btw you may > > use the conjunction `bind' to construct a verb that igore its > > argument. eg. (untested) > > > > rstD=: 9!:7 bind UDRAW > > > > -- > > regards, > > ==================================================== > > GPG key 1024D/4434BAB3 2008-08-24 > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > > 唐詩260 李益 江南曲 > > 嫁得瞿塘賈 朝朝誤妾期 早知潮有信 嫁與弄潮兒 > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩177 岑參 奉和中書舍人賈至早朝大明宮 雞鳴紫陌曙光寒 鶯囀皇州春色闌 金闕曉鐘開萬戶 玉階仙仗擁千官 花迎劍珮星初落 柳拂旌旗露未乾 獨有鳳凰池上客 陽春一曲和皆難 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm