Private Sub BtnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCalc.Click
Dim payroll As String = Nothing
payroll = InputBox("What is the payrolls for store1", "Inc", , , )
Lblstore1.Text = payroll
Dim payroll2 As String = Nothing
payroll2 = InputBox("What is the payroll for store2", "Inc", , , )
Lblstore2.Text = payroll2
Dim payroll3 As String = Nothing
payroll3 = InputBox("What is the payroll for store3", "Inc", , , )
Lblstore3.Text = payroll2
Dim total As String
total = Val(payroll) + Val(payroll2) + Val(payroll3)
lblcompany.Text = total
End Sub
Input box and loop confusion
Page 1 of 12 Replies - 490 Views - Last Post: 24 February 2012 - 12:21 PM
#1
Input box and loop confusion
Posted 23 February 2012 - 10:01 PM
I'm trying to find a code that will allow me to loop each of these input boxes 5 times each, can anyone help me?
Replies To: Input box and loop confusion
#3
Re: Input box and loop confusion
Posted 24 February 2012 - 12:21 PM
maj3091, on 24 February 2012 - 01:06 AM, said:
As a starting point, have a look at this link on loops in VB.Net.
Also, as it's VB.Net you're working with, please take care to post in the correct forum, as you'll get more specific responses.
Also, as it's VB.Net you're working with, please take care to post in the correct forum, as you'll get more specific responses.
thanks man i'll be sure to do that
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|