the char number of char 1 of word x
Randall Lee Reetz
randall at randallreetz.com
Sat Dec 29 18:43:35 EST 2007
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" <JimAultWins at yahoo.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
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" <randall at randallreetz.com> 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" <wjm at wjm.org>
> To: use-revolution at lists.runrev.com
> 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
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list