Ensuring numeric input

simplsol at aol.com simplsol at aol.com
Thu Oct 27 07:14:22 EDT 2005


Richard,
To make the world safe for Intel we could do the dirty work in a 
variable:

on closeField
put me into temp
add 0 to temp--of course any number would do (0.00001 or 10 or ?)
if the result is not empy
then answer "This is not a valid number:"
end closeField

Paul Looney

-----Original Message-----
From: Richard Gaskin <ambassador at fourthworld.com>
To: How to use Revolution <use-revolution at lists.runrev.com>
Sent: Wed, 26 Oct 2005 19:25:53 -0700
Subject: Re: Ensuring numeric input

   simplsol at aol.com wrote: 
 > Michael, 
  > You can also add zero to it; if it is a number then the result will 
be > empty. 
 
 But is zero counted as zero, or would it add 0.00001 in Intel chips? 
 
 -- 
  Richard Gaskin 
  Managing Editor, revJournal 
  _______________________________________________________ 
  Rev tips, tutorials and more: http://www.revJournal.com 
 _______________________________________________ 
 use-revolution mailing list 
 use-revolution at lists.runrev.com 
  Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences: 
 http://lists.runrev.com/mailman/listinfo/use-revolution 

    



More information about the use-livecode mailing list