How to extract characters from the middle of a string?

Marian Petrides mpetrides at earthlink.net
Wed Jul 7 18:23:25 EDT 2004


No, but I did type "find character in string" and "extract character 
from string" into the search box (the search documentation one, not the 
transcript dictionary one--in accordance with the other discussion 
going on right now, attempting to get the most hits possible.

And I tried looking up "string" in the printed dox.  Didn't think to 
look up "character."

M


On Jul 7, 2004, at 6:15 PM, J. Landman Gay wrote:

> On 7/7/04 4:37 PM, Marian Petrides wrote:
>
>> If I have a string containing 25 characters, how do I extract the 
>> eight characters starting at position 5 in the string?
>> [In BASIC this would be left$(5,8)  or some such.]
>> This should be a simple thing to do but I can't figure it out and 
>> can't figure out which dictionary item applies.
>
> By the way, the exact phrase you needed was under "character" in the 
> transcript dictionary. Did you look up "character"?
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list