use-revolution Digest, Vol 16, Issue 81

Mark Smith mark at maseurope.net
Wed Jan 26 07:43:30 EST 2005


The two length expressions evaluate to numbers - so you're actually 
saying (using your example of 12345678):

put char 5 to 8 of it into myExtension

However, transcript can count backwards as well as forwards, so simpler 
would be:

put char -3 to -1 of it into myExtension

negative numbers in this context simply mean counting backwards from 
the end of the string.

Cheers

Mark

On 26 Jan 2005, at 06:34, use-revolution-request at lists.runrev.com wrote:

> put char (length(it) - 3) to (length(it)) of it into myExtension
>
> but don't understand what it means.



More information about the Use-livecode mailing list