none
Convert number to text string RRS feed

  • Question

  • I have what I want to be built as a string of numbers, but instead it comes out as a summed number.  How can I make it be a string?  Here's the code snippet.

    For x=1 To 3
      data=data+x
    EndFor
    TextWindow.WriteLine(data)

    What I want out of this is:  123

    JR
    Wednesday, May 6, 2009 8:49 PM
    Answerer

Answers

All replies

  • Instead of data = data + x

    use:

    data = Text.Append(data, x)
    Wednesday, May 6, 2009 8:56 PM
  • Maybe this "bug" can be fixed by adding a "type" field to the Primitive Structure ?
    Fremy - Developer in VB.NET, C# and JScript ... - Feel free to try my extension
    Wednesday, May 6, 2009 9:05 PM
  • Rushworks,

    Thanks.  I had tried using append, but didn't do it right.

    JR
    Wednesday, May 6, 2009 10:17 PM
    Answerer