Deleting elements out of an array

Shao Sean shaosean at unitz.ca
Thu Apr 18 15:25:00 EDT 2002


actually the  first form you used:
> on mouseUp
>    put 100 into myArray["firstElement"]
>    put 200 into myArray["secondElement"]
>    delete myArray["firstElement"]
>    put the keys of myArray
> end mouseUp

will delete the whole variable, not just the entry you want..

use "delete variable myArray["firstElement"] will delete just the entry you
want..




More information about the use-livecode mailing list