On 4/17/07, bill lam <[EMAIL PROTECTED]> wrote:
Raul Miller wrote:
> On 4/17/07, bill lam <[EMAIL PROTECTED]> wrote:
>> Currently it will raise domain error if filename (caption) of
>> owner_drawn button
>> is empty or the file can not be located. This causes practical
>> difficulty.
>> Could it be relaxed so that it will not give domain errors?
>
> Won't :: work?
No, in that context.
Because you're using wd? What about using something like wderrok
instead, where wderrok is defined as:
wdstates=:".;._1;._2(0 :0)
, 1 1, 2 1, 3 1, 4 1 NB. start wd statement parse
, 1 2, 2 2, 3 2, 4 2 NB. ; ends wd statement
, 2 0, 4 0, 2 0, 2 0 NB. " ends wd " quoted word
, 3 0, 3 0, 3 0, 3 0 NB. * finishes array as a parameter
, 1 0, 2 0, 3 0, 4 0 NB. other characters
)
wderrok_z_=: 0 0 $ [: 11!:0 ::0:&> (0;wdstates;1(127})';"*'i.a.) ;: ]
(Note: for pre-unicode J, replace 127 with 255).
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm