Re: text vs string
Re: text vs string
- Subject: Re: text vs string
- From: email@hidden
- Date: Tue, 6 Feb 2001 04:10:09 EST
In a message dated 2/5/01 1:29:40 PM, Michael Turner wrote:
>
I have noticed several examples of scripts with the data type "text" where I
>
would naturally have used "string". What is the difference between these
>
data types? I suspect that some of my frustration with strings in
>
AppleScript comes from utilizing them when I should be using data type
>
"text"
>
>
set textMessage to "Text to be displayed" as text
>
set stringMessage to "More Text to be displayed" as string
>
display dialog textMessage & return & stringMessage
>
--> displays both messages
They are synonymous terms, AFAIK. In fact, try this:
set hstring to "hello" as string
set cls to class of hstring
display dialog cls
--> TEXT
Jeff Baumann
email@hidden
www.linkedresources.com
Comparing MHz between the G4 and Pentium is like comparing the popular vote
between Bush and Gore; it's interesting, but it isn't what matters.