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