Re: How to convert string to int in Apple script
Re: How to convert string to int in Apple script
- Subject: Re: How to convert string to int in Apple script
- From: Michelle Steiner <email@hidden>
- Date: Wed, 18 Jun 2003 08:43:04 -0700
On Wednesday, June 18, 2003, at 06:56 AM, Bhanja, Sanjeeb wrote:
I have a number as a string .
how can i convert to integer ?
If the value in string is always an integer
x as integer
if the value is always either an integer or a real
(x as number) div 1
If the value can be a non number
try --optional parameters go here if needed; see ASLG or other reference
(x as number) div 1
on error
--error routine goes here
end try
--Michelle
--
Never play strip Tarot.
_______________________________________________
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.