delete array element

Bob Sneidar bobs at twft.com
Tue Jul 5 19:54:36 EDT 2011


I was going to say, I didn't know you could declare a global in the message box. 

Bob


On Jul 4, 2011, at 6:05 AM, Ken Ray wrote:

> 
>> When I try to use that command in the Message box, I get an error:
>> 
>> global myVariable; put "A" into myVariable[1]; put "B" into myVariable[2];
>> delete global myVariable[2]
>> 
>> "Error description: delete: bad variable expression"
> 
> This is one of those cases where the Message Box can't resolve things
> properly. If you put the same code in a button an click it, it works without
> an error.
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list