On 23/09/2016 23:16, Bob Sneidar wrote:
put rContactRecord ["contacttype"] into tContactType -- verified is "|it|" set the itemdelimiter to "|" set wholematches to true put itemoffset(pType, tContactType) into tOffset -- verified pType is "it" tOffset contains 0I also used literals as in put itemoffset("it","|it|") into tOffset tOffset still contains 0. I tries using commas with the default itemdelimiter that doesn't work. I replaced "|" with cr and used lineOffset that doesn't work. Finally, I DELETED THE FIRST VERTICAL BAR AND THAT WORKED!!!!! So this bug is about having an empty first item/line. In this case offset will always return 0. Not good. Yes I have submitted a bug report. I will update it, but hopefully I can keep this from biting anyone else in the butt. It is also going to make it really difficult to do LIKE queries on list columns. Hopefully this gets fixed soon, because I depend on this kind of list queries a LOT.
Hi Bob, Your bug report is http://quality.livecode.com/show_bug.cgi?id=18343. We've already got a fix for it, but unfortunately the fix wasn't quite in time for the 8.1.1 cut off. It will be included in 8.1.2. Peter -- Dr Peter Brett <[email protected]> LiveCode Technical Project Manager lcb-mode for Emacs: https://github.com/peter-b/lcb-mode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
