How to extract characters from the middle of a string?
Mark Brownell
gizmotron at earthlink.net
Wed Jul 7 17:50:50 EDT 2004
on 7/7/04 2:37 PM, Marian Petrides at mpetrides at earthlink.net 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.
>
> Thanks.
>
> M
try:
put char 5 to 8 of yourTextFullOf25Characters into zippyDdoDaVar5to8
or
delete char 5 to 8 of "abcdefghijklmnopqrstuvwxyz"
More information about the use-livecode
mailing list