Re: Count of Tab characters
Re: Count of Tab characters
- Subject: Re: Count of Tab characters
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 20 Jan 2001 17:53:02 -0800
On 1/20/01 5:35 PM, "Allen Watson" <email@hidden> wrote:
>
"count" gives the number of somethings in the object, usually characters or
>
items (in a list). It is a verb, not a property, so the correct syntax would
>
be "count tabchar" and not "count of tabchar" (the latter form is used for
>
things like "first word of document", or another example, "count words of
>
document").
Although it is true that "count" is a verb, "count of" does work "as if" it
were a noun - it's coerced to "count". It doesn't help here anyway, of
course, as you say - unless you want to run a repeat loop on every character
of allText looking for tabs, counting them as you go or afterwards.
(Afterwards could use "count" or "count of").
--
Paul Berkowitz