Nicolas,

>Does mc have a specific function that, like caseSensitive, restricts
>data-input to numbers? If not, any alternate suggestions? Use matchText or
>offset, right?
>
>I ask because, after implementing Nelson Zink's clock-timer script (thank
>you!), I realized what some misguided (evil minded?!) user could do when
>prompted by:
>
>  ask "Count down how many seconds?" with 300


Try this:

ask "Count down how many seconds?" with 300
if it is not a number or it<1 or it>10000 then  --pick your own upper 
limit
    beep
    answer quote&it&quote&" is not a number I like! Enter something 
reasonable."
    exit mouseup
  end if

Nelson Zink

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to