testing whether the value of a variable is an array
Ben Rubinstein
benr at cogapp.com
Thu Apr 11 05:14:01 EDT 2002
Is there a clean way to test this? Currently I'm using a pragmatic test:
function isArray @v
if v <> empty then return false
return (the keys of v <> empty)
end isArray
Is this reasonable? Is there a more 'official' way?
Ben Rubinstein | Email: benr_mc at cogapp.com
Cognitive Applications Ltd | Phone: +44 (0)1273-821600
http://www.cogapp.com | Fax : +44 (0)1273-728866
More information about the use-livecode
mailing list