[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

quick VB question. whats wrong with this code?: http://paste

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: 2017-03-20 21_21_04-Lottery.png (19KB, 369x300px) Image search: [Google]
2017-03-20 21_21_04-Lottery.png
19KB, 369x300px
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?
>>
File: burd purturbed.jpg (14KB, 240x242px) Image search: [Google]
burd purturbed.jpg
14KB, 240x242px
>>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
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.