Hi Rolf: "how many times does ......" Maybe this may be worth this:
count=split(mystring,chr$(10)).count Regards, Julio 2017-09-13 9:18 GMT+02:00 Rolf-Werner Eilert <rwe-...@osnanet.de>: > Hi folks, > > Somehow I don't remember this - wasn't there a function to count the > number of substrings occuring within a string? > > For instance, how many times does myString contain chr$(10) (to count the > number of linefeeds). So it would be a blend of Instr() and String$(). > > Thanks for your input! > > Regards > Rolf > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user