itemOffset still not working
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Sep 23 18:16:54 EDT 2016
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.
Bob S
More information about the use-livecode
mailing list