Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
 Director Online WikiMain Page | About | Help | FAQ | Special pages | Log in | Printable version | Disclaimers

Constant

From Director Online Wiki

In JavaScript syntax, you can define your own custom constants by using the const keyword.

In Lingo, a constant is a keyword, such as RETURN, which contains a value that cannot be changed.

 put RETURN
 -- "
 "
 RETURN = "carriage return"
 put RETURN
 -- "
 "

By convention constants are written all in capitals. This helps, for example, to distinguish the constant carriage RETURN from the keyword return, used to return a value from a handler.

Lingo Constants

Retrieved from "http://www.director-online.com/dougwiki/index.php/Constant"

This page has been accessed 1297 times. This page was last modified 00:05, 10 Apr 2005.