[squeakland] How can I evaluate an Expression in Text

K. K. Subramaniam kksubbu.ml at gmail.com
Wed Mar 30 21:08:35 EDT 2011


On Thursday 31 Mar 2011 2:36:43 am Steve Thomas wrote:
> So if I have a Text Object with the "characters" value: (5 + 2) / 2
> How can I set the numeric value of another text object (or any variable of
> Type Number) to the "evaluated" value

Use Text | numericValue in basic category. The corresponding code equivalents 
for setting and getting numeric equivalents are:
  self setNumericValue: 3
and
  self getNumericValue

HTH .. Subbu


More information about the squeakland mailing list