Re: Another scary bug??

2016-09-08 Thread Ben Rubinstein
It is still happening in 8.1-rc2. On 07/09/2016 23:09, Bob Sneidar wrote: And now, even scarier, I copied the values out of the field I was testign with, and pasted the value into the code which uses hard coded values and THAT WORKS NOW when a second ago before I pasted the value, it did NOT w

Re: Another scary bug??

2016-09-07 Thread Monte Goulding
Thanks Bob Lots of parts of the engine that deal with strings have two code paths. One for native encoding and one for unicode. This is an attempt to maintain as close to pre LC 7 performance as possible. I suspect based on your description that the bug only impacts the native encoding side of

Re: Another scary bug??

2016-09-07 Thread Bob Sneidar
And now, even scarier, I copied the values out of the field I was testign with, and pasted the value into the code which uses hard coded values and THAT WORKS NOW when a second ago before I pasted the value, it did NOT work!!! This is definitely an issue where the formatting of the text is comin

Re: Another scary bug??

2016-09-07 Thread Bob Sneidar
Here's a nice little twist! This works if the arguements for itemOffset come from fields. it only breaks if you hard code them (or in my case pull the values from a database. I am willing to bet a nice steak dinner this is being caused by uniCode. The engine is probably expecting to search for u

Re: Another scary bug??

2016-09-07 Thread Bob Sneidar
Thanks Panagiotis. I will submit a bug report to that effect. Unfortunately I need wholeMatches because contacttypes can be IT or SITES among other things and replacing IT in contacttypes will result in SE instead of SITE. I am working around it but this can bite someone in the arse hard if they

Re: Another scary bug??

2016-09-07 Thread panagiotis merakos
It looks like "set the wholeMatches to true" is the culprit. Removing this line results in the expected behavior. On Wed, Sep 7, 2016 at 8:36 PM, Richard Gaskin wrote: > dunbarx wrote: > > > I get a "2' in both handlers. > > > > > > v.6.7.9 > > In v8.1rc2 on Ubuntu I get 0 for the first one (did

Re: Another scary bug??

2016-09-07 Thread Richard Gaskin
dunbarx wrote: > I get a "2' in both handlers. > > > v.6.7.9 In v8.1rc2 on Ubuntu I get 0 for the first one (didn't run the second). I'd file a bug report, looks like a regression while handling some of the other chunk issues. -- Richard Gaskin Fourth World Systems Software Design and Dev

Re: Another scary bug??

2016-09-07 Thread dunbarx
Bob. I get a "2' in both handlers. v.6.7.9 Craig -Original Message- From: Bob Sneidar To: How to use LiveCode 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?

Another scary bug??

2016-09-07 Thread Bob Sneidar
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