How to extract characters from the middle of a string?

David Vaughan dvk at dvkconsult.com.au
Wed Jul 7 22:50:12 EDT 2004


On 08/07/2004, at 8:47,  "J. Landman Gay" <jacque at hyperactivesw.com> 
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.
>
> get char 5 to 12 of myString

Nice to see that the fourth answer to the question finally got the 
arithmetic part of the syntax right ;-)

David
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list