• 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: How to convert string to int in Apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to convert string to int in Apple script (From: "Bhanja, Sanjeeb" <email@hidden>)

  • Prev by Date: Re: Why save text item delimiters? Philosophical question....
  • Next by Date: Re: parsing string in apple script
  • Previous by thread: Re: How to convert string to int in Apple script
  • Next by thread: parsing string in apple script
  • Index(es):
    • Date
    • Thread