problem with counting words

Peter Haworth pete at lcsql.com
Mon Oct 13 14:03:04 EDT 2014


There's a qcc enhancement request out there for a new chunk type ("chunk")
along with a "delimited by" clause.

For this example, it would be possible to

put the number of chunks delimited by space of field "xyz" into tCount



Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Mon, Oct 13, 2014 at 7:32 AM, Terence Heaford <t.heaford at btinternet.com>
wrote:

> set the wordDelim to space
> set the wordDelim to “*”
>
> set the wordDelim to “any single character you want”
>
> Should be easy for the LiveCode programmers to deliver such a command.
>
> also put the wordDelim into myVar
>
> Initally set to space, resets to space at the end of a handler.
>
>
> All the best
>
> Terry
>
>
> On 13 Oct 2014, at 15:23, Ralph DiMola <rdimola at evergreeninfo.net> wrote:
>
> > <-----Original Message-----
> > <From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
> Behalf
> > Of Mark Wieder
> > <Sent: Sunday, October 12, 2014 8:00 PM
> > <To: How to use LiveCode
> > <Subject: Re: problem with counting words
> > <
> > <
> > <wordDelimiter would be an interesting addition, but would have its own
> > complexities. You need to keep in mind that words are delimited by
> > <whitespace: spaces, tabs, carriage returns, etc., but also by <some>
> >> punctuation: commas, periods, semicolons, etc.
> >>
> >> I also find that text within quotes being a single word is congruent
> with
> > defining arguments for comandline syntax.
> >>
> >> --
> >> -Mark Wieder
> >> ahsoftware at gmail.com
> >
> > Also don't forget the non-breaking space Decimal 160.
> >
> >
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > rdimola at evergreeninfo.net
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list