Arrays and empty? Is this a bug?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Mon Feb 4 15:05:01 CST 2008


Hi Chipp,

Being logical, I would inclined to think so :-)
And I'm always bored to have to write: 'if tMyArray = empty and the  
keys of tMyArray = empty then...'

Le 4 févr. 08 à 21:43, Chipp Walters a écrit :

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

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list