• 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: Kai Edwards <email@hidden>
  • Date: Sun, 01 Dec 2002 23:39:38 +0000

on Sat, 30 Nov 2002 20:30:25 +0100, Thomas <email@hidden> wrote:

> - "AB45DJI" is a number --> false; would be cool but that doesn't work

Try this, Thomas:

================

isNum("AB45DJI")

on isNum(v)
try
v as number
true
on error
false
end try
end isNum

================

Kai

--
email@hidden
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Check if it is a number
      • From: Thomas <email@hidden>
  • Prev by Date: Re: The System Preferences Pains and setting display resolution (OS X 10.2.2)
  • Next by Date: alert windows
  • Previous by thread: Re: The System Preferences Pains and setting display resolution (OS X 10.2.2)
  • Next by thread: Re: Check if it is a number
  • Index(es):
    • Date
    • Thread