4 Replies
      Latest reply on Feb 17, 2016 1:38 PM by Claude31
      dpalme Level 1 Level 1 (0 points)

        I was working through some lessons on swift (I come from a mainframe background) and I grasp (somewhat) the basics of classes, but this line of code has me a little stumped:


        self.resultsField.StringValue = result.description


        resultsField is a texbox.

        result is a var type of Double, so am I to assume that description is a string version of the variables value?


        Also, what is the resultsField using the "self" before it? Why wouldn't this work as well:


        results.Field.StringValue = result.description