How to extract characters from the middle of a string?
    J. Landman Gay 
    jacque at hyperactivesw.com
       
    Thu Jul  8 14:01:28 EDT 2004
    
    
  
On 7/7/04 9:50 PM, David Vaughan wrote:
> 
> 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 ;-)
Yeah, but I had to count on my fingers. ;)
-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com
    
    
More information about the use-livecode
mailing list