Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smalltalk, how to insert tab in a string

How do you insert a "tab" in a string? I thought it was t enclosed in <> , but I do:

'Name <t> Age <t> Occupation'

prints exactly how it's typed. I would like to get

Name    Age     Occupation          

instead of

Name <t> Age <t> Occupation
like image 631
user69514 Avatar asked Feb 20 '26 09:02

user69514


1 Answers

'Name ', String tab, ' Age ', String tab, ' Occupation'

If String does not understand #tab, you have to :

'Name ', Character tab asString, ' Age ', Character tab asString, ' Occupation'
like image 183
Damien Cassou Avatar answered Feb 22 '26 01:02

Damien Cassou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!