Creating cards

jbv jbv.silences at club-internet.fr
Sun Feb 26 14:53:11 EST 2006



Gordon,

in which script is your addCard function located ?

> Dear Revvers
>
> Haven't used rev for a while - what am I doing wrong?
>
> I created a function to add a named card to a stack like this:
>
> function addCard cardname
>   create card cardname
> end addCard
>
> When I run it from the message box like this: addCard("AnotherCard"), it creates the new card twice!
>
> Before I run this function, the 'cardnames' of my stack looks like this:
>
> MyFirstCard
>
> Afterwards, it looks like this:
>
> MyFirstCard
> AnotherCard
> AnotherCard
>
> Any ideas why it creates the new card twice?
>
> Best




More information about the use-livecode mailing list