Click to See Complete Forum and Search --> : appending text


bentley
October 26th, 2002, 01:57 PM
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?

KristianH
October 27th, 2002, 03:29 AM
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.