Livecode Wiki
Advertisement

Makes a new card with the same background(s) as the current card.

Built-in Message handler[]

Examples:

create card
create card "Main"
create card (field "ouput")

Use the create card command to add a new card to the current stack.

The cardName is the name property of the new card. If you don't specify a cardName, the new card's name is empty.

The new card is placed after the current card in the defaultStack. When the card is created, you go to the new card.

Any groups on the current card whose backgroundBehavior is set to true will be placed on the newly-created card automatically.

The create card command places the ID property of the newly created card in the it variable.

To create a card in a specific stack, first set the defaultStack to the stack where you want to create the new card:

Advertisement