[Pharo-project] Substrings for strings?

Peter Hugosson-Miller oldmanlink at gmail.com
Fri Feb 19 19:26:54 EST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20100220/ab2ef573/attachment.html>


More information about the Pharo-dev mailing list