1

Hi I have text editor widget in smalltalk (visual works) that returns a text object, however I want the text returned to be handled as a string object.

How do you parse a text object as a string?

BIBD
  • 15,107
  • 25
  • 85
  • 137
user69514
  • 26,935
  • 59
  • 154
  • 188

2 Answers2

2

if Text and String are different classes in VW Smalltalk (which I don't have easy access to at the moment), see if you can call yourText asString or perhaps String newFrom: yourText or maybe yourText as: String. Most of these would work in Squeak Smalltalk.

Randal Schwartz
  • 39,428
  • 4
  • 43
  • 70
0

You send #string to the Text object