character of a string which is a number.
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