Re: Check if it is a number
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.