Page 1 of 1

Moving Value of Field to another field on another card/stack

Posted: Wed Jun 18, 2014 7:12 pm
by kosmo01
Is this the correct format to move the value of a field (substack) to another field on the main stack?

put field "field 1" into field "field 2" of card "card id 1002" of stack "Untitled 1"

I am getting a error that it can't find the card.

Thanks,
Kosmo

Re: Moving Value of Field to another field on another card/s

Posted: Wed Jun 18, 2014 8:20 pm
by kosmo01
Figured it out...

changed 'of card' to 'of the card'

Thanks,
Kosmo

Re: Moving Value of Field to another field on another card/s

Posted: Wed Jun 18, 2014 8:22 pm
by SparkOut
The problem you have is with the part:

card "card id 1002"

By enclosing in quotes you have made "card id 1002" a literal string, and so LC will be looking for a card named "card id 1002".

Try referring to the card name in quotes:

card "theCardName"

or refer to the id by id:

card id 1002

as in

Code: Select all

put field "field 1" into field "field 2" of card id 1002 of stack "Untitled 1"
This assumes that your fields are named "field 1" and "field 2"