Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2008 [RESOLVED] Issues....

$
0
0
HTML Code:

Dim QVal As Integer
        Dim DVal As Integer
        Dim NVal As Integer
        Dim PVal As Integer
        Dim Quarters As Integer
        Dim Dimes As Integer
        Dim Nickels As Integer
        Dim Pennies As Integer
        Dim QTotal As Integer
        Dim DTotal As Integer
        Dim NTotal As Integer
        Dim PTotal As Integer
        Dim Total

        QVal = 0.25
        DVal = 0.1
        NVal = 0.05
        PVal = 0.01

        QBox.Text = Quarters
        DBox.Text = Dimes
        NBox.Text = Nickels
        PBox.Text = Pennies

        QTotal = Quarters * QVal
        DTotal = Dimes * DVal
        NTotal = Nickels * NVal
        PTotal = Quarters * PVal

        Total = QTotal + DTotal + NTotal + PTotal

I have this under a button and when it is clicked I want to send the Total to a label but I'm having trouble getting the variable to change from input.

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>