Arrays and empty? Is this a bug?

Chipp Walters chipp at chipp.com
Mon Feb 4 15:43:14 EST 2008


Interestingly one can put empty into an array to reset it:

put empty into tMyArray

but cannot check to see if an array is empty as it will return true no
matter if there is data in the array or not.

put tMyArray is empty

always returns true even if:

put "red" into tMyArray[1]
put tMyArray is empty

Is this a bug?



More information about the use-livecode mailing list