Lingo Dictionary > O-R > put...into

 

put...into

Syntax

put expression into chunkExpression 

Description

Command; evaluates a Lingo expression, converts the value to a string, and uses the resulting string to replace a specified chunk in a container. (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 in containers.

When a movie plays back as an applet, the put...into command replaces all text within a container, not chunks of text.

To assign values to variables, use the set command.

Example

This statement changes the second line of the field cast member Review Comments to "Reviewed by Agnes Gooch":

put "Reviewed by Agnes Gooch" into line 2 of member "Review Comments"

The same can be accomplished with a text cast member using this syntax:

put "Reviewed by Agnes Gooch" into member("Review Comments").line[2]

See also

char...of, item...of, line...of, paragraph, word...of, put...after, put...before, set...to, set...=