Inconsistent variable behavior... help?

Mark Swindell mdswindell at charter.net
Sun Nov 17 23:52:01 EST 2002


on 11/17/02 10:38 AM, Howard Bornstein at bornstein at designeq.com wrote:

>> put the number of cd gMySound of stack defaults
>> returns: "Can't find card"
> 
> I set up a little stack called Defaults with a card called "bay" and set
> a global gMySound = "bay"
> 
> When I executed this statement: <put the number of cd gMySound of stack
> "defaults">, RR returned 1.
> 
> Could your card name have a space before or after it (ditto for the
> global)?
> 
> Howard Bornstein


Howard and Sarah, 

Thanks for your responses.  Howard, you nailed it, it seems.  The variable
was picked up from a field which had somehow got returns entered after the
word "bay."  It was apparently those invisible returns that confused the
issue.

Much obliged to both for your time and troubleshooting.

Mark




More information about the use-livecode mailing list