0

Hello, my listbox contents output as 1 whole row like:

Total Normal = 3 Total High = 5 Total Low = 6

When i want the output to be formatted like:

Total Normal = 3
Total High = 5
Total Low = 6


Here is my code:

lstResults.Items.Add("Total Normal = " & sumNorm &
                             "Total High = " & sumHigh &
                             "Total Low = " & sumLow)

Any suggestions on how to make the output in such a format?

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by xcarbonx
0

You want it added to three different lines, correct?

If so, you need to do this...

lstResults.Items.Add("Total Normal = " & sumNorm) 
    lstResults.Items.Add("Total High = " & sumHigh)
    lstResults.Items.Add("Total Low = " & sumLow)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.