CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: appending text

  1. #1
    Join Date
    Nov 2001
    Posts
    6

    appending text

    i have the following code

    Do While intBackCounter >= 0


    txtAnswer.Text = intArray(intBackCounter)
    intBackCounter = intBackCounter - 1

    Loop

    i want to be able to have multiple entries in the txtAnswer box
    how can i do that? I have about 5 values in the array and it only outputs one. I need to know how to append or make all of the values in the array show up?

  2. #2
    Join Date
    May 2002
    Location
    Växjö, Sweden
    Posts
    15
    Alter your code to:

    Do While intBackCounter >= 0


    txtAnswer.Text &= intArray(intBackCounter)
    intBackCounter = intBackCounter - 1

    Loop

    That will add whatever is in intArray(X) to the current string in txtAnswer.text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured