HI All
I am trying to understand the do until loop when adding numbers along with a variable to a new line in a textbox, incrementing each time.
My current example is very simple but only returns the first value. I require the output to be incremented automatically, so I thought a do until loop would be best.
current code:
The outcome is for me expected so far, all the above gives is Line number: 1 and Line number 10: but I am not understanding this loop.
I need to the output to be
Line number: 1
Line number: 2
Line number: 3
through to Line number 10
Any help?
Thanks
I am trying to understand the do until loop when adding numbers along with a variable to a new line in a textbox, incrementing each time.
My current example is very simple but only returns the first value. I require the output to be incremented automatically, so I thought a do until loop would be best.
current code:
VB.NET:
Dim linenumber As String
Dim lines As Integer
Dim linestart As Integer
Dim linesend As Integer
linenumber = "Line number:"
lines = 0
linestart = lines + 1
linesend = 10
TextBox1.Text = (linenumber & linestart & (vbNewLine & linenumber & linesend))
The outcome is for me expected so far, all the above gives is Line number: 1 and Line number 10: but I am not understanding this loop.
I need to the output to be
Line number: 1
Line number: 2
Line number: 3
through to Line number 10
Any help?
Thanks