quick VB question. whats wrong with this code?: http://pastebin.com/SWHrHSph
why arent the fields displaying multiple values and why is "PickFive" always a smaller number than "PickFiveAdd?" I assume it has something to do with what instance the two are using?
>VB
found your problem
>>59503232
My current concern is why do you have a single function for every increment of numbers to loop? Use one function and pass the loop amount as a parameter...
>>59503232
i love vb6, used it for ages
i think you need to clean the fields each time its updated toavoid multiple values
>>59503609
but I want multiple values? "i= 1 to 5" should make it list 5 different numbers, correct?
>>59503353
D E P R E C A T E D
>>59503232
Have you considered creating a GUI interface to track his IP address?
>>59503709
>>59503709
>GUI interface
Interface interface
>>59503724
Please type your PIN number
>>59503232
You sound like you want an array... but you're clearly not using arrays. In order to make it display nicely try something like txtFiveNumLottery.Text = String.Join(", ", yds.GetRandoms(5,1,50))
Look into something more like this:Friend Class YourDumbShit
Private _Rand As Random = New Random()
Public Function GetRandoms(ByVal howMany As Integer, ByVal minVal As Integer, ByVal maxVal As Integer) As Integer()
Dim nums(howMany - 1) As Integer
For i = 0 To howMany - 1
nums(i) = _Rand.Next(minVal, maxVal)
Next
GetRandoms = nums
End Function
End Class