FANDOM


Copies selected text or an object to the clipboard or to a card, group, or stack.

Syntax:

copy [object [to {card | group | stack} ]] | [chunk of field]

Examples:

copy 
copy button "next" to group "container"
copy this card to stack "Project 1" 
copy word -3 to -1 of field "output"
copy line 1 to -2 of field "MyText" of me
copy word 5 of field "MyText" of me
copy item 1 to 10 of field "MyText" of me
copy char 1 to -1 of field "MyText" of me #this copy all text


Use the copy command to place objects or text on the clipboard, or to make a copy of an object without changing the contents of the clipboard.

The object is any available object. If no object or chunk is specified, the copy command copies whatever is currently selected.

If a card, group, or stack is specified, the object is placed there instead of being placed in the clipboard, and the clipboard is left unchanged.

If a card is specified, the copied object must be a control or group.

If a group is specified, the copied object must be a control.

If a stack is specified, the copied object must be a card.

If a chunk of a field is specified, the specified text is copied to the clipboard (including text styles).

If a destination card, group, or stack is specified, the copy command places the ID property of the newly created object in the it variable, and the appropriate message is sent.

When copying from a list field, only entire lines can be copied. If you specify a chunk that's smaller than a line or that crosses line boundaries, the copy command copies the entire line or lines containing the chunk.


See Also: clipboard Function, copyResource Function, place Command, clone Command, cut Command, doMenu Command, undo Command, paste Command, select Command, clipboardData Property, newButton Message, newEPS Message, copyKey Message, newPlayer Message, newField Message, newScrollbar Message, newGraphic Message, newImage Message, newBackground Message, newCard Message, newGroup Message

Nutzung von Community-Inhalten gemäß CC-BY-SA , sofern nicht anders angegeben.