Chnge Card Names with scripts

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Chnge Card Names with scripts

Post by no1g8tor »

I need to change certain card names in stacks. I have a report that creates a card for each page and when done it gets erased. I copy the first card in the stack, but it names it the same as the first.

I need to rename each card after the report is created to reflect the page name of the report.

Thanks
malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte »

Hi,

after cloning or copying the card a reference to the card is placed in the it variable.

copy cd "myCard"
set the name of it to "newName"

hope that helps,

Malte
no1g8tor
Posts: 62
Joined: Fri Nov 23, 2007 3:01 pm

Post by no1g8tor »

than you for the quick reply.

I use the copy cd"" command to make the new card but I was just not sure how to change the name.

I will give it a shot

Mike
Post Reply