O'Reilly logo

Lingo in a Nutshell by Bruce A. Epstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. Case-Sensitivity, Sort Order, Diacritical Marks, and Space-Sensitivity

This appendix covers the idiosyncrasies of uppercase and lowercase characters, sort order ranking, spacing, and diacritical marks in Director.

Case-Sensitivity

For the most part, Director is case-insensitive (that is, not case-sensitive).

The following are all case-insensitive:

  • Handler names

  • Variable names

  • String comparison using =, <>, contains, starts, or offset(), and clause evaluation in case statements.

  • Symbol names (see exceptions below)

  • Symbol lookup using deleteOne(), getOne(), getPos(), findPos(), and findPosNear(); refer to Chapter 6, and Chapter 19.

  • External local filenames, including Lingo properties that use external files

  • Macintosh hard drive names

  • Castmember names

  • Marker label names

  • Xtras’ names and methods

  • XObject names and methods

  • Lingo keywords

  • Strings recognized by Director, such as “left,” “right,” and “center”

  • VBScript and JavaScript using Microsoft Internet Explorer only

  • HTML tags

  • e-mail addresses

The following items are case-sensitive to some degree:

  • Symbols—converting a symbol to a string using string(#symbolName) will always return a string with the same case with which the symbol was first declared. Refer to Chapter 19.

  • String lookup using deleteOne(), getOne(), getPos(), findPos(), findPosNear(), and sort(); refer to Chapter 6.

  • String comparisons using <, <=, >, >=, min(), and max().

  • Macintosh File Type and Creator Codes (as used in the FileIO Xtra’s setFinderInfo, getFinderInfo(), and setFilterMask ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required