Re: Can't seem to print the script of a card

2010-01-16 Thread Len Morgan

On 1/16/2010 8:51 PM, Sarah Reichelt wrote:

On Sun, Jan 17, 2010 at 12:39 PM, Len Morgan  wrote:
   

I'm trying to write a recursive stack printer and I'm having trouble with
"unnamed" cards (i.e., cards that have the default name of "card id 1002").

I use the following:

on printCards pStack
put the cardNames of stack pStack into theCards

repeat for each line c of theCards
put the script of card c of stack pStack into theScript
...
end repeat
end printCards

I get an error saying "Can't find card"  every time I hit a card that has
never been named.  Is this not possible or am I doing something wrong?
 

The problem is that the default description for an un-named card
includes the word "card".
So you are effectively telling the script to print "card card id
1002", which does not exist.

You might be better using the cardIDs instead of the cardNames to
populate the original list.

Cheers,
Sarah
   


Thanks Sarah, that worked perfectly.

len
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can't seem to print the script of a card

2010-01-16 Thread Sarah Reichelt
On Sun, Jan 17, 2010 at 12:39 PM, Len Morgan  wrote:
> I'm trying to write a recursive stack printer and I'm having trouble with
> "unnamed" cards (i.e., cards that have the default name of "card id 1002").
>
> I use the following:
>
> on printCards pStack
>    put the cardNames of stack pStack into theCards
>
>    repeat for each line c of theCards
>        put the script of card c of stack pStack into theScript
>        ...
>    end repeat
> end printCards
>
> I get an error saying "Can't find card"  every time I hit a card that has
> never been named.  Is this not possible or am I doing something wrong?

The problem is that the default description for an un-named card
includes the word "card".
So you are effectively telling the script to print "card card id
1002", which does not exist.

You might be better using the cardIDs instead of the cardNames to
populate the original list.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Can't seem to print the script of a card

2010-01-16 Thread Len Morgan
I'm trying to write a recursive stack printer and I'm having trouble 
with "unnamed" cards (i.e., cards that have the default name of "card id 
1002").


I use the following:

on printCards pStack
put the cardNames of stack pStack into theCards

repeat for each line c of theCards
put the script of card c of stack pStack into theScript
...
end repeat
end printCards

I get an error saying "Can't find card"  every time I hit a card that 
has never been named.  Is this not possible or am I doing something wrong?


len morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution