Go cd 500
ray at linkit.com
Tue Dec 20 22:01:13 EST 2011
Mark - Unfortunately our users sometimes insist on naming things numbers, but hey, that repeat loop idea is a good one. Thanks!
On Dec 20, 2011, at 7:46 PM, Mark Schonewille wrote:
> 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?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode