Page 1 of 1

get the name of the card in wherein it is

Posted: Tue Dec 08, 2015 6:42 am
by problème
Hello,
I am on a card "myCard" and i want get his name so i don't this :

Code: Select all

command getCardName
   put the name of this card into nom
   delete char 0 to 5 of nom
   put nom is "myCard" 
end getCardName
I get result false

Re: get the name of the card in wherein it is

Posted: Tue Dec 08, 2015 7:01 am
by Thierry
you can try this:

Code: Select all

put the short name of this card is "myCard"
less work, and no quotes involved around the card name..

Thierry

Re: get the name of the card in wherein it is

Posted: Tue Dec 08, 2015 8:17 am
by problème
thanks for your help

Re: get the name of the card in wherein it is

Posted: Tue Dec 08, 2015 9:21 am
by Thierry
problème wrote:thanks for your help
Je vous en prie :)

In case you're interested to make your code working,
you need to 'unquote' your var, i.e:

Code: Select all

    put the name of this card into nom
   delete char 0 to 5 of nom
   put (char 2 to -2 of nom) is "myCard"

Thierry