Simple String Question.
Diego Gomez Deck
DiegoGomezDeck at ConsultAr.com
Wed May 15 15:19:51 UTC 2002
Two answers, one short and one large:
short one:
you need #,
a := 'StringOne'
b := 'StringTwo'
c := a , b
large one:
when you need to find a message that produces a result you know use 'method finder' (world menu > open > method finder) and write some like this:
'StringOne'. 'StringTwo'. 'StringOneStringTwo'
this means "What message I must send to 'StringOne' with parameter 'StringTwo' to get the answer 'StringOneStringTwo'.
Enjoy it!
Diego Gomez Deck
>My books are at home and I am having difficulty finding how to put two
>strings together.
>
>In Python and I think other languages (I believe) I can do in Smalltalk
>form:
>
>a := 'StringOne'
>b := 'StringTwo'
>c := a + b
>
>I have browsed the String class and protocols and haven't found the
>equivalent. When I 'doit' on the above it informs me at least one
>integer is required.
>
>I know I must have overlooked the right code or an example but just am
>not seeing it.
>
>Any help greatly appreciated.
>
>Jimmie Houchin
>
>
>
More information about the Squeak-dev
mailing list
|