Re: A problem with signs
Re: A problem with signs
- Subject: Re: A problem with signs
- From: Malcolm Fitzgerald <email@hidden>
- Date: Tue, 23 May 2006 21:50:17 +1000
On 23/05/2006, at 2:35 PM, Carl Anderson wrote:
I am trying to write an Applescript but am having a problem with "-"
signs.
This is a sample program that contains the problem
set x to "-0.1234"
set y to first word of x
display dialog x & " " & y
The program returns -0.1234 for x but returns a (+)0.1234 for y. I
have asked for the first character of x only to get a "0" instead of a
"-".
I get "-" for character 1 of x
I expected the first word of x to be 0 but got 0.1234 just as you did.
Words are defined by many different boundary characters, one of which
is "-"
malcolm
_______________________________________________
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