Skip to Content
Lingo in a Nutshell
book

Lingo in a Nutshell

by Bruce A. Epstein
November 1998
Beginner
631 pages
21h 46m
English
O'Reilly Media, Inc.
Content preview from Lingo in a Nutshell

Space-Sensitivity

Lingo code is often whitespace-insensitive (that is, it ignores extra Space, Tab, and Return characters). Director ignores any spaces you type at the beginning of a line of Lingo. It indents each line of code in the current code block (such as an if...then...else...end if statement two spaces) from the surrounding code. Use the Tab key to auto-format your Lingo code with proper indenting. Use the auto-indenting as your guide to indicate possible structural errors. (See Chapter 1.) You can add spaces within your lines and blank lines to your Lingo scripts to make them more readable.

JavaScript scripts and HTML tags also tend to be space-insensitive.

Many aspects of Lingo and Director are space-sensitive, however.

The following must not include any spaces:

  • Handler names

  • Variable names

  • Symbol names

  • Windows 3.1 filenames

  • Windows 95 filenames can not begin with a space but may contain spaces elsewhere

  • Xtras names and methods; the name of the external Xtras file can have spaces (except under Windows 3.1), but not the internal name by which Xtras are accessed

  • XObject names and methods (see previous note for Xtras)

  • Lingo keywords

  • e-mail addresses

  • Do not include spaces at the end of a line after the Lingo continuation character ¬.

  • URLs—use %20 in lieu of spaces

The following allow spaces, but they are space-sensitive, including any leading or trailing spaces:

  • The FileIO Xtra under Windows does not differentiate names with spaces from similar names without space.

  • String comparison

  • External ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

COM+ Unleashed

COM+ Unleashed

Richard Leinecker
Visual C++® 6 Unleashed

Visual C++® 6 Unleashed

Mickey Williams, David Bennett

Publisher Resources

ISBN: 9781565924932Catalog PageErrata