Count of Tab characters
Count of Tab characters
- Subject: Count of Tab characters
- From: Bill Planey <email@hidden>
- Date: Fri, 19 Jan 2001 15:35:13 -0600
(I am trying to do this in MS Word 98, for what that's worth)...
I cannot figure out the correct syntax to count the number of
tab characters in a document (or a line, or a paragraph). I have tried
the following, usint a document which I know has a total of 5 tabs in it:
set tabChar to ASCII number 9
set TabCount to count of tabChar
display dialog "There are " & TabCount & " tab characters in this
document."
but I get this message in the event log:
tell application "Microsoft Word"
ASCII number 9
--> 57
count 57
--> Microsoft Word got an error: 57 doesn't understand the count
message.
Can anyone help?
Thanks,
Bill Planey