[Newbies] Stringing a string together!

Richard Durr richard.durr at googlemail.com
Mon Dec 6 20:46:32 UTC 2010


You can't. You can, however, create a String representation:

StringMorph contents: 'Text Stuff here:' , aSmallInteger asString.

On Mon, Dec 6, 2010 at 9:31 PM, awood969 <contact at awood969.com> wrote:

>
> Hi guys,
>
> I am wondering how you can pull different datatypes into a string, for
> example im trying to do the following with a StringMorph;
>
> StringMorph contents: 'Text Stuff Here: ' + SmallInteger asString
>
> Hard to explain myself but in PHP it would be;
>
> $finalvalue = "Player: " + $myint;
>
> and in C would be
>
> cout << "Player: " << myint << endl;
>
> Thanks!
> Andrew
> --
> View this message in context:
> http://forum.world.st/Stringing-a-string-together-tp3075262p3075262.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101206/23bd1ade/attachment.htm


More information about the Beginners mailing list