Lingo Dictionary > O-R > RETURN (constant)

 

RETURN (constant)

Syntax

RETURN

Description

Constant; represents a carriage return.

Example

This statement causes a paused movie to continue when the user presses the carriage return:

if (the key = RETURN) then go to the frame + 1

Example

This statement uses the RETURN character constant to insert a carriage return between two lines in an alert message:

alert "Last line in the file." & RETURN & "Click OK to exit."

Example

In Windows, it is standard practice to place an additional line-feed character at the end of each line. This statement creates a two-character string named CRLF that provides the additional line feed:

CRLF = RETURN & numToChar(10)