Hello Peter,

>>mystring: "123456"
=3D=3D "123456"
remove find mystring last mystring
=3D=3D ""
probe mystring
=3D=3D "12345"

maybe other ways.

=3D=3DPhilippe


Selon PeterWAWood <[EMAIL PROTECTED]>:

> I've worked out two ways to chop-off the last character of a string.
>
> Method One
>
> >> mystring: "123456"
> =3D=3D "123456"
> >> mystring: head remove back tail mystring
> =3D=3D "12345"
>
> Method Two
>
> >> mystring: "123456"
> =3D=3D "123456"
> >> mystring: copy/part mystring ((length? mystring) - 1)
> =3D=3D "12345"
>
> Can anyone suggest a less verbose, clearer and quicker way for me?
>
> Thanks
>
> Peter
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.806 / Virus Database: 548 - Release Date: 05/12/2004
>
>
>
> --
> To unsubscribe from the list, just send an email to rebol-request
> at rebol.com with unsubscribe as the subject.
>
>


-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to