How to extract characters from the middle of a string?

Scott Rossi scott at
Wed Jul 7 16:42:33 CDT 2004

Recently, "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.]

Does this do what you want:

  get char 5 to 13 of tString


Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
E: scott at

More information about the use-livecode mailing list