On Sat, 29 Nov 2014 22:22:23 +0100 Tobias Boege <tabo...@gmail.com> wrote:
> On Sat, 29 Nov 2014, Beno??t Minisini wrote: > > I'm currently a new behaviour for the Split() instruction, that is > > normally backward-compatible. > > > > Split("abcd",";","\\;") > > > > splits the "abcd" string with the ";" character, and uses the backslash > > character for escaping it. > > > > This behaviour is enabled when the escape string (the third argument) > > has two characters, and its second character is the same as the first > > splitting character (the second argument). Then the first character of > > the escape string is the escape character (usually a backslash). > > > > What do you think about that? > > > > I have not found any use of a two-character escape string in my collective > projects. Therefore, no objection. (Although I don't really understand what > the change means. Do you have an example of what Split() gives before and > after your change, in a case where they're different?) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Yes, I would like to see an example of before and after as well. I think I had a need for exactly this the other day. I wanted to split a comma delimited list except where the comma is immediately followed by a space. Will this change help that? regards Bruce -- B Bruen <adamn...@gmail.com> ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user