Card names no longer recognised by code

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
HumanMedia
Posts: 4
Joined: Tue Jan 20, 2009 12:37 am

Card names no longer recognised by code

Post by HumanMedia »

I keep hitting a strange bug where card names are not recognised by the code, but card numbers are. The card name in the code is identical to the actual card name (copy and pasted even) but it doesnt recognise it.

So this isnt recognised:

if the name of the current card is "Video Player" then

But this is:

if the number of the current card is 2 then

Even though the name is correct.

Is it me or is the stack corrupt?
gmccarthy
Posts: 62
Joined: Sat Feb 17, 2007 4:56 am

RE: Card names no longer recognised by code

Post by gmccarthy »

try "short name" instead of "name"
HumanMedia
Posts: 4
Joined: Tue Jan 20, 2009 12:37 am

Post by HumanMedia »

thank you
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

You can also save some typing and use "this" instead of "current" :-)


Best

Klaus
Post Reply