Go cd 500

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Dec 20 20:46:44 EST 2011


Hi Ray,

You should not use numbers for card names. If you have to use a number, add character, e.g. x500.

To temporarily work around this problem, you can use a repeat loop that gets the id and name of each card:

repeat with x = 1 to number of cards
  if the name of cd x is "500" then
    put the id of cd x into myID
    exit repeat
  end if
end repeat

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission!

On 21 dec 2011, at 03:24, Ray Horsley wrote:

> Here's a relatively basic one but still perplexing.  If card 2 in a stack of 2 cards is named a number, 500 for example, how can you go to it in a script if you only have the card's name?





More information about the Use-livecode mailing list