Pretty simple question I need to get an integer from the user and I only know how to get a string from them. So if there is a way to get an integer from the user or to convert the string to an integer please let me know.
i cant find string to integer on that page and i've seen it before. I'll keep looking at it.
Anton
2010-02-09 01:07:43
asNumber was not on that page.
Anton
2010-02-09 01:15:43
Ah, looks like you figured it out :)
Vivin Paliath
2010-02-09 01:22:45
+1
A:
If you are using Squeak or Pharo, learn to use the "Message Finder".
Left click on the background, click Tools > Message Finder. Click on the top left pane. Type:
'12345'. 12345.
Hit Control-S and you have your answer. Specifically, you have three answers: asInteger, asNumber and initialIntegerOrNil.
Turtle
2010-05-15 04:22:54