2 Replies - 785 Views - Last Post: 24 February 2012 - 12:21 PM Rate Topic: -----

#1 bro4mayor  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 23-February 12

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?

 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


Is This A Good Question/Topic? 0
  • +

Replies To: Input box and loop confusion

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,776
  • Joined: 26-March 09

Re: Input box and loop confusion

Posted 24 February 2012 - 01:06 AM

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.
Was This Post Helpful? 0
  • +
  • -

#3 bro4mayor  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 23-February 12

Re: Input box and loop confusion

Posted 24 February 2012 - 12:21 PM

View Postmaj3091, 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.


thanks man i'll be sure to do that
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1