• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17 . Debugging and Troubleshooting > The 12 most common Lingo errors

The 12 most common Lingo errors

In my experience, if Lingo scripting goes awry, it's usually because one or more of the following errors has occurred. Try eliminating these factors before you start looking for more esoteric explanations:

  • A Lingo element is misspelled. Lingo isn't case-sensitive (so capitalization doesn't matter), but if you misspell the variable myVar as miVar, you may have inadvertently created the variable miVar. When working with long Lingo terms such as the emulateMultiButtonMouse, keep errors (and finger fatigue) to a minimum by using the pull-down Lingo menus in the Script window.

  • Nested end and if statements are missing. Keep an eye on the script while it's automatically formatted in the Script window. If two or more consecutive lines are flush against the left margin, that's a sign that Lingo can't parse the script as written. Usually, what are missing are a sufficient number of end and if statements to balance the number of scripts and layers of conditionality. And remember: In most cases of conditionality, you can use the case statement structure to create a somewhat tidier script (see Chapter 11: Deeper into Lingo).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint