Appendix E. Error Messages and Error Codes

Lingo Compiler and Runtime Error Messages

There are two broad classes of Lingo errors: those that occur when compiling scripts (compile-time) and those that occur when running Lingo (runtime). Table E-1 lists both types of errors alphabetically. Refer to Chapter 1, Chapter 2, and Chapter 3, for many more details. See the Zeus Tech Note on Lingo Error Messages at http://www.zeusprod.com/technote/error.html.

Table E-1. Lingo Errors

Error Message

Cause or Solution

<Member Type> cast member expected

You specified a cast member as part of the command, but it was not of the expected asset type. Check its type of member and explicitly refer to a cast member’s castLib if it is not in castLib 1.

<Member Type> cast member not found

You specified a nonexistent cast member either by name or by number. When using multiple castLibs, specify the castLib explicitly, such as:

member 5 of castLib 2

Adding an integer to a member reference causes an incorrect result because members and integers are different data types (See Chapter 5):

put the member of sprite 5

-- (member 2 of castLib 1)

put the member of sprite 5 + 1

-- 0

Increment the memberNum instead.

set the memberNum of sprite 5 = ¬

(the castLibNum of sprite 5) + 1

An internal error occurred

This error is returned by Adobe Acrobat when using open... with because it does not set the working directory. See Chapter 14.

<Something> expected

The Lingo command or function expects you ...

Get Lingo in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.