Another scary bug??
dunbarx at aol.com
dunbarx at aol.com
Wed Sep 7 13:31:45 EDT 2016
Bob.
I get a "2' in both handlers.
v.6.7.9
Craig
-----Original Message-----
From: Bob Sneidar <bobsneidar at iotecdigital.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Sep 7, 2016 1:20 pm
Subject: Another scary bug??
Can someone please explain to me how the following code can produce 0 in tSiteItem?
on mouseUp
set the itemDelimiter to "|"
set wholeMatches to true
put "|6|" into tITIDList
put "6" into tSiteID
put itemOffset(tSiteID, tITIDList) into tSiteItem
breakpoint
end mouseUp
But this code produces 2?
on mouseUp
set the itemDelimiter to "|"
set wholeMatches to true
put "1|6|3" into tITIDList
put "6" into tSiteID
put itemOffset(tSiteID, tITIDList) into tSiteItem
breakpoint
end mouseUp
Seems that if the first item of a list is empty, itemOffset (and perhaps other offset functions) breaks.
Bob S
_______________________________________________
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