Re: Coercion problem
Re: Coercion problem
- Subject: Re: Coercion problem
- From: Barry Wainwright <email@hidden>
- Date: Tue, 05 Jul 2005 16:22:24 +0100
- Thread-topic: Coercion problem
If newxdates started out a a text variable, you are carrying out text
concatenations with the '&' character.
You need to ensure 'newxdates' starts out as a list, then copy items to the
end of the list...
Set newxdate to {}
Repeat
-- whatever you need to get the next chunk of data
Copy a to end of newxdate
End repeat
--
Barry
> From: Robert Poland <email@hidden>
> Date: Tue, 05 Jul 2005 07:17:38 -0600
> To: AppleScript <email@hidden>
> Subject: Coercion problem
>
> Hi,
>
> I am construction a list of data from a larger list and end up with,
> for example, " January 220000000 January 2300000"
> What I want is " January 22","0","0","0",""," 0","0","0","January
> 23","0","0","0","0","0"
>
> The data is gathered by "set newxdates to newxdates & a".
>
> Any clues on what I'm not doing?
>
> Tia,
> --
> Bob Poland - Fort Collins, CO
> http://www.ibrb.org/
> _______________________________________________
> 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
_______________________________________________
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