[Pharo-project] Substrings for strings?

Peter Hugosson-Miller oldmanlink at gmail.com
Fri Feb 19 20:50:34 EST 2010


On 20 feb 2010, at 02.44, Nathan Tuttle <nathan.tuttle at gmail.com> wrote:

> Thank you very much!

...says he, generously ignoring my copy/paste error.

Seriously, when will I learn not to post untested code in an email, no  
matter how trivial it seems at the time? Still, at least I spelled the  
method name correctly :-p.

--
Cheers,
Peter

> 2010/2/19 Peter Hugosson-Miller <oldmanlink at gmail.com>
> location := 5.
> length := 3.
> result := 'Foo Bar Baz' copyFrom: location to: position + length - 1
>
>
>
> 2010/2/20 Nathan Tuttle <nathan.tuttle at gmail.com>
> I can't find any method that allows me to take a substring out of a  
> string my location and length.
>
> Anyone know?
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>
> -- 
> Cheers,
> Peter
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20100220/64c7d022/attachment.html>


More information about the Pharo-dev mailing list