Testing for numerics

Ken Ray kray at sonsothunder.com
Tue Oct 3 13:23:26 EDT 2006


On 10/3/06 12:11 PM, "Jim Ault" <JimAultWins at yahoo.com> wrote:

> 
> if field "MyTextField" is an integer and field "MyTextField" > -0.1

Can't you use just "> 0" ?


  if field "MyTextField" is an integer and field "MyTextField" > 0

or:

  get fld "MyTextField"
  if (it is an integer) and (it > 0)

:-)

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the Use-livecode mailing list