Multidimensional array issue

Ralph DiMola rdimola at evergreeninfo.net
Tue Mar 9 12:37:40 EST 2021


If “item” is among the lines of the keys of tDataA and tDataA [“item”] is empty then --it's an array key with an empty value.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode
Sent: Tuesday, March 09, 2021 12:24 PM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Multidimensional array issue

The trouble is, if tDataA [“item”] variable does not exist, that is it is not an array, you will still get empty.

Bob S


On Mar 8, 2021, at 9:16 PM, Phil Davis via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

When I want to determine whether or not an array element contains non-whitespace, I usually say:

    if word 1 of tDataA["item"] is empty then ... (or is NOT empty)

Just another option.

Phil Davis

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list