• 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: Thomas <email@hidden>
  • Date: Thu, 28 Nov 2002 19:53:15 +0100

Yes I used this method for some time but I get back to the other one with try block because this one is much more slow : you have to check for every text item of the text with a repeat block to know if there is a text item in {1, 2, 3, ...}.
But I also think this one is the best code for this work...

Thomas

christian vick wrote :

'as number' is not reliable, since AS doesn't error on some charcters, i.e.
space, plus, minus. Not enough, this vary in different AS versions. Better
use...


if myChar is in {"1","2","3", ......} then
-- is number
end


Greetings
Christian Vick
_______________________________________________
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.

References: 
 >Re: Check if it is a number (From: christian vick <email@hidden>)

  • Prev by Date: Re: AS link to MySQL?
  • Next by Date: Setting STR# resource entries via AS
  • Previous by thread: Re: Check if it is a number
  • Next by thread: Re: Check if it is a number
  • Index(es):
    • Date
    • Thread