Re: Split by null
I lost a bit of time trying to reproduce the issue using an input actually having NULLs, and could not reproduce. The recipe is way simpler, and the bug report is there: http://quality.runrev.com/show_bug.cgi?id=15641 Regards, Seb On 23/07/2015 15:32, Mark Waddingham wrote: Indeed - I already forwarded this to Seb to file :) Sent from my iPhone On 23 Jul 2015, at 15:28, Mike Kerner mikeker...@roadrunner.com wrote: Sounds like it's time for a bug report. On Thu, Jul 23, 2015 at 1:11 AM, Peter Bogdanoff bogdan...@me.com wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. You use the split command to build an array from a list in a field. I was befuddled when I got bad results when sorting an array in LC 7 while using the same script that worked well in LC 6. I eliminated the “and null” and all was well. Peter Bogdanoff UCLA ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Sébastien Nouat LiveCode Development Team ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Split by null
On 7/23/2015 1:11 AM, Peter Bogdanoff wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. I am trying to understand what the intent is/was of using and null as it seems to be functionally irrelevant in the example stack. i.e. 'split tText by cr' and 'split tText by cr and null' produce identical results in LC6 the 'and null' would only be relevant in the split command if you had array keys separated from array values by nulls in your data (example below) and using a null as a delimiter seem odd put AnullapplecrBnullbottlecrCnullcradlecr into myVariable split myVariable by cr and null to presumably get array[ A ]=apple array[ B ]=bottle array[ C ]=cradle However, the statements above fail in Livecode 6 in that the output you get is: array[ 1 ]=A apple array[ 2 ]=B bottle array[ 3 ]=C cradle where the white space between A and apple is a null, split fails to do anything with a null delimiter in LC6 (tested in LC6.7.5) For data that is just: Line 1 Line 2 Line 3 the proper syntax seems like it should just be 'split tText by cr' ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Split by null
Sounds like it's time for a bug report. On Thu, Jul 23, 2015 at 1:11 AM, Peter Bogdanoff bogdan...@me.com wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. You use the split command to build an array from a list in a field. I was befuddled when I got bad results when sorting an array in LC 7 while using the same script that worked well in LC 6. I eliminated the “and null” and all was well. Peter Bogdanoff UCLA ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Split by null
Indeed - I already forwarded this to Seb to file :) Sent from my iPhone On 23 Jul 2015, at 15:28, Mike Kerner mikeker...@roadrunner.com wrote: Sounds like it's time for a bug report. On Thu, Jul 23, 2015 at 1:11 AM, Peter Bogdanoff bogdan...@me.com wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. You use the split command to build an array from a list in a field. I was befuddled when I got bad results when sorting an array in LC 7 while using the same script that worked well in LC 6. I eliminated the “and null” and all was well. Peter Bogdanoff UCLA ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Split by null
Moreover, that example succeeds in LC 7! On Thu, Jul 23, 2015 at 4:04 PM Paul Dupuis p...@researchware.com wrote: On 7/23/2015 1:11 AM, Peter Bogdanoff wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. I am trying to understand what the intent is/was of using and null as it seems to be functionally irrelevant in the example stack. i.e. 'split tText by cr' and 'split tText by cr and null' produce identical results in LC6 the 'and null' would only be relevant in the split command if you had array keys separated from array values by nulls in your data (example below) and using a null as a delimiter seem odd put AnullapplecrBnullbottlecrCnullcradlecr into myVariable split myVariable by cr and null to presumably get array[ A ]=apple array[ B ]=bottle array[ C ]=cradle However, the statements above fail in Livecode 6 in that the output you get is: array[ 1 ]=A apple array[ 2 ]=B bottle array[ 3 ]=C cradle where the white space between A and apple is a null, split fails to do anything with a null delimiter in LC6 (tested in LC6.7.5) For data that is just: Line 1 Line 2 Line 3 the proper syntax seems like it should just be 'split tText by cr' ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Split by null
Hi Peter, After looking more into the issue, it appears that you have been exploiting a bug in LiveCode 6.7 for a long time, that's not a bug in LiveCode 7.0 :) If you change by NULL with by ; then you will have the same thing in 6.7 as you see with NULL in 7.0: the behaviour described in the documentation. I suggest you to get a look at the bug report (http://quality.runrev.com/show_bug.cgi?id=15641) for more explanations. Regards, Sébastien On 23/07/2015 16:47, Ali Lloyd wrote: Moreover, that example succeeds in LC 7! On Thu, Jul 23, 2015 at 4:04 PM Paul Dupuis p...@researchware.com wrote: On 7/23/2015 1:11 AM, Peter Bogdanoff wrote: A heads up: split tText by cr and null works differently in LiveCode 7 than it did in LC 6. The cr parameter is OK, but the null adds another cr when this expression is used in LC 7. I am trying to understand what the intent is/was of using and null as it seems to be functionally irrelevant in the example stack. i.e. 'split tText by cr' and 'split tText by cr and null' produce identical results in LC6 the 'and null' would only be relevant in the split command if you had array keys separated from array values by nulls in your data (example below) and using a null as a delimiter seem odd put AnullapplecrBnullbottlecrCnullcradlecr into myVariable split myVariable by cr and null to presumably get array[ A ]=apple array[ B ]=bottle array[ C ]=cradle However, the statements above fail in Livecode 6 in that the output you get is: array[ 1 ]=A apple array[ 2 ]=B bottle array[ 3 ]=C cradle where the white space between A and apple is a null, split fails to do anything with a null delimiter in LC6 (tested in LC6.7.5) For data that is just: Line 1 Line 2 Line 3 the proper syntax seems like it should just be 'split tText by cr' ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Sébastien Nouat LiveCode Development Team ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode