User Guide

515
put
Syntax
put expression
Description
Command; evaluates the expression specified by expression and displays the result in the
Message window. This command can be used as a debugging tool by tracking the values of
variables as a movie plays.
The Director player for Java displays the message from the
put command in the browser’s Java
console window. Access to the console window depends on the browser.
Examples
This statement displays the time in the Message window:
put the time
-- "9:10 AM"
This statement displays the value assigned to the variable bid in the Message window:
put bid
-- "Johnson"
See also
put...after, put...before, put...into
put...after
Syntax
put expression after chunkExpression
Description
Command; evaluates a Lingo expression, converts the value to a string, and inserts the resulting
string after a specified chunk in a container, without replacing the containers contents. (If
chunkExpression specifies a nonexistent target chunk, the string value is inserted as appropriate
into the container.)
Chunk expressions refer to any character, word, item, or line in any container. Containers include
field cast members; text cast members; variables that hold strings; and specified characters, words,
items, lines, and ranges within containers.
Examples
This statement adds the string “fox dog cat” after the contents of the field cast member Animal
List:
put "fox dog cat" after member "Animal List"
The same can be accomplished using this statement:
put "fox dog cat" after member("Animal List").line[1]
See also
char...of, item...of, line...of, paragraph, word...of, put...before, put...into
put...before
Syntax
put expression before chunkExpression