how to generate sequential number?
I have seen only the random number generating trick over the net but could get nothing about sequential number generating idea. I think it is easy but hard for me, therefore Pls. reply me how to write code in visual basic 2010 for: If there is two textboxes, one is for low value and another is for High value and another button is generate command. Another one listbox is for output value appearing.There the output value must be appear within a second by using timer counter. Finally the listbox items must be saved as text file. How to write code for this purpose pls help me......
Manoj BhoirPosted Apr 19, 2015, 8:05 AM
Please see this link :
For...Next Statement (Visual Basic) - https://msdn.microsoft.com/en-us/library/5z06z1kb.aspx
See this sample code :
Public Sub CreateSequence(fromNumber As Integer, toNumber As Integer)
For mStart = fromNumber To toNumber
Me.ListBox1.Items.Add(mStart)
Next
End Sub
How to Use : CreateSequence(5, 10)
Output : 5, 6, 7, 8, 9, 10