• 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
character of a string which is a number.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

character of a string which is a number.


  • Subject: character of a string which is a number.
  • From: Emmanuel <email@hidden>
  • Date: Mon, 10 Oct 2005 23:06:07 +0200

Under 10.3.9 - results under 10.4.2 welcome.

Perplexing enough, what would you expect that line to return:

0 + (character 50000 of "1234")

It's a complex issue, where AppleScript has both to deal with a so-far reference (character 5) and to coerce to number. What will it do first?

It eventually coerces to number ... the partial result of the failing evaluation, "1234", and kindly returns:

-- 1234.0

"get" forces the evaluation first, and solves the issue.

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Help on Quark ligatures and oldstyle numbers
  • Next by Date: Re: Smile wait for log
  • Previous by thread: Re: Help on Quark ligatures and oldstyle numbers
  • Next by thread: Re: character of a string which is a number.
  • Index(es):
    • Date
    • Thread