Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 3 - Values / Value Class Definitions


Text

You can use the class identifier Text as a synonym for the identifier String, for example, in coercions:

"A string" as string = "A string" as text
--result: true
However, the class of a string is always string:

class of "A string" as text
--result: string
Unlike the class identifier Number (which is a synonym for either Real or Integer) or Styled Text (which denotes a string that includes font and style information), the class identifier Text is precisely equivalent to a single class identifier--String.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996