• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Check if it is a number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check if it is a number


  • Subject: Re: Check if it is a number
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Mon, 02 Dec 2002 10:50:25 -0500

> Date: Sat, 30 Nov 2002 11:46:01 -0500
> Subject: Re: Check if it is a number
> From: Paul Skinner <email@hidden>

> NumeralsOnly("12A4B5")-->false

> on NumeralsOnly(n)
> try
> n as number
> return n does not contain "-" and n does not contain "+" and n does
> not contain " " and n is not ""
> on error
> return false
> end try
> end NumeralsOnly

This is clever, Paul, good stuff. :)


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Newbie needs help...
  • Next by Date: iconquestion
  • Previous by thread: Re: Check if it is a number
  • Next by thread: Re: Check if it is a number
  • Index(es):
    • Date
    • Thread