Re: Re: text vs string
Re: Re: text vs string
- Subject: Re: Re: text vs string
- From: email@hidden
- Date: Tue, 6 Feb 2001 12:50:53 EST
In a message dated 2/6/01 8:20:05 AM, Pier wrote:
>
>set x to "Hello" as text
>
>class of x
>
>--result: string
>
>
Does that clarify anything?
No, and now I have a headache.
log text
-- > (*text*)
log string
--> (*string*)
log class of text
--> (*class*)
log class of "string"
--> (*string*)
display dialog class of "string" giving up after 1
--> TEXT
display dialog text giving up after 1
--> ctxt
display dialog class of text giving up after 1
--> pcls
display dialog class of text as string giving up after 1
--> class
display dialog class of (text as string) giving up after 1
--> TEXT
Apparently anything logged gets coerced to a string first, but not that which
is displayed in a dialog. Personally, I would prefer it be the other way
around.
Jeff Baumann
email@hidden
www.linkedresources.com
Strings are classy