itemOffset still not working

Peter TB Brett peter.brett at livecode.com
Mon Sep 26 07:06:21 EDT 2016


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 0
>
> I 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 <peter.brett at livecode.com>
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode




More information about the use-livecode mailing list