Link to home
Start Free TrialLog in
Avatar of John Account
John Account

asked on

keep running total and change to currency

Can you  help me figure out how to keep an accurate running total when using the wizard control, and convert these results to a currency value? (because I'm going to have send this value as payment to paypal, so I need currency instead of string--and, of course, accurate) Thanks.
Protected Sub Wizard1_ActiveStepChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Wizard1.ActiveStepChanged
        Select Case Wizard1.ActiveStepIndex
            Case 0
                'How many users                
            Case 1
                lblTally.Text = 23 + rdoConcurrentUsers.SelectedValue
            Case 2
                lblTally.Text = 23 + rdoConcurrentUsers.SelectedValue * rdoHours.SelectedValue
            Case 3
                lblReport.ForeColor = Drawing.Color.Red
                lblReport.Text = "This is a summary of your selections for a webcast service commencing on " & _
                RadDateTimePicker1.SelectedDate & ", for " & rdoHours.SelectedItem.Text & " hours, to support up to " & _
                rdoConcurrentUsers.SelectedItem.Text & " total users." & " If this is correct, click Finish to checkout."
        End Select
    End Sub
 
    Protected Sub rdoConcurrentUsers_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
        lblTxtTotal.Visible = True
        lblTally.Text = 23 + rdoConcurrentUsers.SelectedValue
    End Sub
 
    Protected Sub rdoHours_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
        lblTally.Text = 23 + rdoConcurrentUsers.SelectedValue * rdoHours.SelectedValue
    End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of copyPasteGhost
copyPasteGhost
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Account
John Account

ASKER

Thank you, Ghost. That did the trick!
Very nice. Thanks.
you are most welcome. If you have anything else don't be shy.
I'll try not to be! Thanks :-)