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
Contact:

Card names no longer recognised by code

Post by HumanMedia » Tue Mar 03, 2009 3:23 am

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 » Tue Mar 03, 2009 6:45 am

try "short name" instead of "name"

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

Post by HumanMedia » Tue Mar 03, 2009 7:25 am

thank you

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Tue Mar 03, 2009 7:07 pm

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


Best

Klaus

Post Reply