On Mon, Jan 11, 2010 at 11:52 AM, Bernhardt, Gunnar
<gunnar.bernhardt@comos.com> wrote:
> Hello all,
>
>
>

>
> The problem: If you want to enter a value > 10, you first have to type the
> letter <1>. Right now the notifier kicks in and changes it to 6 which is
> obviously undesired.
>
>
>
> Is there an elegant way to check the content of a field AFTER the input has
> been completed?
>
>

I have developed a very great fondness for Coco grammars.  I don't
think you need all that power for this, but I would try a grammar
suggested by the following:

legal = { "0" }  ("1"  ( "0" ... "8" ) | ( "3" ... "9" )).

This would all be contained in the Notifier.  I would probably do a
scan on all the collected characters each time the notifier is called,
so that the Notifier doesn't carry any state information between
calls.

I wasn't sure what you did when you had a good number.  Do you hit a
"Do" button, tab away, magically accept the first good input ...?

I included a module with a Notifier, Guard, and a form using these ideas.

-- 
-- 
Aubrey McIntosh, Ph.D.
1502 Devon Circle
Austin TX 78723-1814
http://home.grandecom.net/~amcintosh/aubrey/Search/

----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV@LISTS.OBERON.CH