delete array element

Ken Ray kray at sonsothunder.com
Mon Jul 4 09:05:58 EDT 2011


> 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/






More information about the use-livecode mailing list