Mar 10, 2013 04:57 PM
(This post was last modified: Mar 11, 2013 09:40 AM by SomeWhiteGuy.)
The user Nov asked me to help with this "Sport Bet Accumulator Calculator".
I myself have never fucked with anything regarding betting and sports and shit like that, but I gave it a try. After a while, I finally got it.
Here's the function and the other shit you'll need:
http://pastebin.com/yy29KrYx
How to call it:
tbResult is the TextBox that will be the result of the calculations, where we will set it's value to the result of the function.
Integer.Parse is used to get the number equivalent of a String.
Then you supply divisions of the other values.
In this format: # / #, # / #, # / #
and so on.
Here's a screen shot of the little app I made while I was testing this:
Spoiler (Click to View)
Oh and note, while I only supplied 4 odd inputs, it supports any amount.
I'm not too sure if I did this the best way, so any criticism is welcome.
Thank you.
I myself have never fucked with anything regarding betting and sports and shit like that, but I gave it a try. After a while, I finally got it.
Here's the function and the other shit you'll need:
http://pastebin.com/yy29KrYx
How to call it:
Code
tbResult.Text = calcBets(Integer.Parse(tbStake.Text), num1.Value / num11.Value, num2.Value / num22.Value, num3.Value / num33.Value, num4.Value / num44.Value)tbResult is the TextBox that will be the result of the calculations, where we will set it's value to the result of the function.
Integer.Parse is used to get the number equivalent of a String.
Then you supply divisions of the other values.
In this format: # / #, # / #, # / #
and so on.
Here's a screen shot of the little app I made while I was testing this:
Spoiler (Click to View)
Oh and note, while I only supplied 4 odd inputs, it supports any amount.
I'm not too sure if I did this the best way, so any criticism is welcome.
Thank you.
Thread: Backend Web-Dev. - by SomeWhiteGuy
WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro

