Greg,
I think the problem is that you have defined the values control as a
button rather than as a static  as the lab suggests. wd 'set *' doesn't
apply to a button hence the domain error.
i.e. 
xywh 2 16 34 12;cc values button;
should be
xywh 2 16 34 12;cc values static;


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of greg heil
> Sent: Monday, 11 February 2008 07:56
> To: Beta forum
> Subject: Re: [Jbeta] form editor
> 
> Ric
> 
> There was indeed a typo as you suggested. It should have been a "*" as
> it was in the actual dialog. Windows does not let me cut and paste
> from a dialog;-( Everywhere else i cut and pasted. Eg the verb
> dice_roll_button is the same as yours... and the labs. my entire lab
> ijs is:
> 
> DICE=: 0 : 0
> pc dice;
> menupop "File";
> menu new "&New" "" "" "";
> menu open "&Open" "" "" "";
> menusep;
> menu exit "&Exit" "" "" "";
> menupopz;
> xywh 38 1 34 12;cc ok button;cn "OK";
> xywh 38 16 34 12;cc cancel button;cn "Cancel";
> xywh 2 1 34 12;cc roll button;cn "Roll";
> xywh 2 16 34 12;cc values button;
> pas 6 6;pcenter;
> rem form end;
> )
> 
> dice_run=: 3 : 0
> wd DICE
> NB. initialize form here
> wd 'pshow;'
> )
> 
> dice_close=: 3 : 0
> wd'pclose'
> )
> 
> dice_cancel_button=: 3 : 0
> dice_close''
> )
> 
> dice_ok_button=: 3 : 0
> wdinfo 'OK button pressed'
> )
> 
> dice_roll_button=: 3 : 0
> wd 'set values *',":>:?6 6
> )
> dice_run''
> 
> 
> 
> On Feb 10, 2008 2:16 AM, Sherlock, Ric 
> <[EMAIL PROTECTED]> wrote:
> I think you have a typo in your dice_roll_button verb.
> The lab specifies the verb as follows:
> dice_roll_button=: 3 : 0
> wd 'set values *',":>:?6 6
> )
> 
> I.e. you have a @ instead of a *
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of greg heil
> Sent: Sunday, 10 February 2008 19:33
> To: Beta forum
> Subject: [Jbeta] form editor
> 
> Running the Form Editor lab it evokes a domain error at item 25:
> 
> domain error: dice_roll_button
>    wd'set values @',":>:?6 6
> 
> This in 6.02h on Win2K
> 
> ~greg
> krsnadas.org
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to