Here is a bit of a hack, if you want:
put numToChar(7) into marker
put marker into char 1 of word 4 of myText
put offset(marker, myText) into tNum
In other words, you replace the chunk with a special character, and
then find the position of that marker. Of course, you would need to
work on a copy of your string.
I need the syntax to get the exact number of chars up until the
first char of another chunk expression (word thscount of thsstring).
-----Original Message-----
From: "Jim Ault" <[EMAIL PROTECTED]>
To: "How to use Revolution" <[email protected]>
Sent: 12/29/2007 3:31 PM
Subject: Re: the char number of char 1 of word x
On 12/29/07 2:33 PM, "Randall Lee Reetz" <[EMAIL PROTECTED]>
wrote:
Ok, my fault, i'll tey to be more specific. Every char in a
string can be
rrferenced by its count in the string. Char 5 of "my love" is
"o". So if i
want the char count of char 1 of word 2 of that same string i
should get 4.
How do i construct an argument for the count of a char as
referenced by
another chunk description (other than char)?
Your explanation is confusing.
Show some more examples of what you want.
There are only words, items, lines as chunks, so I am not sure what
you mean
by 'other chunk description'.
What kind of data/text are you working with?
-- user input, published data, paragraphs, inventory lists
-- music titles, album names, etc
Jim Ault
Las Vegas
-----Original Message-----
From: "Bill Marriott" <[EMAIL PROTECTED]>
To: [email protected]
Sent: 12/29/2007 1:17 PM
Subject: Re: the char number of char 1 of word x
Hi Randall,
How do I get the char count (number) of the first char of a
particular
word (say "word 4") of a string?
do you mean,
the charToNum of char 1 of word x of myString
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution