(This document last revised August 10, 1997)
Copyright © 1996-1999. Zeus Productions. All Rights Reserved.
Written by Bruce A. Epstein
Here are some of the most common Lingo Error messages, and possible solutions.
See also: Lingo in a Nutshell
- Addenda to Appendix E
This error indicates that Director expected a different form of your Lingo command, or different punctuation or that your grammar somehow confused Director.
This error indicates that you have specified a frame that does not exist. For example, a label that is not present.
This error indicates that you have attempted to call a Lingo handler
which does not exist, or you are performing a list operation on a variable
that is not a list!
The error dialog shoud indicate which handler name it could not find.
Once you have determined which handler it could not find, determine why.
If you are calling a built-in Lingo function:
getOSdirectory()
and other file operations
require that the FileIO Xtra be installed.getAt()
or setAt()
,
be sure that the first parameter passed to the function is a valid Lingo
list. If using a list variable, verify its value in the debugger, or use
the listP()
function.
If you are calling a user-defined Lingo handler:
puppetSound
".
"PuppetSound
" is one word, but if you typed it as
"puppet sound
", Lingo would look for a handler called
"puppet
" which doesn't exist. getOSdirectory()
and other
file operations require that the FileIO Xtra be installed.Wrong:
puppet sound "mySound"
Right:
puppetSound "mySound"
This error indicates that you are specifying the wrong number of parameters
for a Lingo command or function. Verify the syntax in the Lingo Dictionary.
You may have supplied too many or too few parameters. In some cases you
can use a dummy parameter, such as EMPTY or 0, as a place holder for a parameter
Wrong:
alert
Right:
alert "Hello" alert EMPTY
This error indicates that the Lingo command or function expects you to
specify a string parameter and you are specifying something else, such as
an integer. The error message should include additional information such
as a number (in which case you specified an integer instead of a string),
a "<void>" in which case the variable you used has not been
assigned any value and is therefor "void".
You can force a type conversion by using the string()
function.
If you are specifying a variable as the parameter, check the variable's
value in the debugger, or by including a "put" statement in your
script prior to where the error occurs.
If the variable you are using is a parameter that is being passed in , verify
the function call arguments in the calling routine.
Verify the order and nature of the parameters in the Lingo Dictionary. You
may have supplied too many or too few parameters.
Wrong:
alert 7
Right:
alert string(7)
This error indicates that Lingo is confused by your syntax. Most likely,
you have used an "IF" statement but forgot to include the corresponding
"THEN" keyword, such as:
Wrong:
if x = 5 alert "Hooray" end if
Right:
if x = 5 THEN alert "Hooray" end if
Home (Spotlight) | Table of Contents | Links
| Contact Info
Place an Order | Products
for Sale | Licensing | Downloads
TechNotes | FAQs
| E-Mail Zeus | GuestBook
| Glossary
Copyright © 1996-1997. Zeus Productions. All Rights Reserved.