Commands

put

Supported By

Syntax

put expression [(into|before|after) container [with propertyName propertyValue]]

PropertyName is the name of a property.

Examples

put "Hello" into steve
put empty into it
put it
put "Tom" into first word of theName
put "." after first character of last word of bill
put steve + bill into andy
put the date into myDate

Description

The put command without a container specified presents the given value to the user in an implementation-defined way. OpenXION prints the given value to standard output. HyperCard puts the given value into the message box.

The put command with a container copies the given value into container. The before and after prepositions specify that the given value should be inserted before or after the existing contents, respectively, instead of completely replacing the existing contents. The with keyword allows you to set a property of the new contents.

Note

If the specified container is a variable name but the variable has not been created yet, a new local variable is created with that name.

Compatibility

The only property HyperTalk supports for the with keyword is menuMessage.

See Also

let