1 Replies - 385 Views - Last Post: 18 November 2017 - 08:32 PM Rate Topic: -----

#1 PLOstyle  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 24
  • Joined: 25-May 15

Barchart with input ratings

Posted 17 November 2017 - 06:02 PM

I am to enter 5 ratings and display in a barchart, I'm having some difficulty, i'm not getting it to loop properly. I'm new to barchart , I know I might be all over the place but I'm lost and need some guidance please............

Private Sub displayButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles displayButton.Click

        Const Prompt As String = "Enter Ratings. " & ControlChars.NewLine &
            ControlChars.NewLine & "Leave Blank and Click OK or Press Cancel to End"
        Const Title As String = "Ratings"


        Dim rate As Integer
        Dim enter As Integer
        Dim count As Integer





       
        Do Until enter > 5


            If enter > 0 And enter <= 10 Then
                rate = Me.rateChart.Series("Ratings").Points.AddXY("RATE 1", enter)
            End If

            If enter > 0 And enter <= 10 Then
                rate = Me.rateChart.Series("Ratings").Points.AddXY("RATE 2", enter)
            End If

            If enter > 0 And enter <= 10 Then
                rate = Me.rateChart.Series("Ratings").Points.AddXY("RATE 3", enter)
            End If

            If enter > 0 And enter <= 10 Then
                rate = Me.rateChart.Series("Ratings").Points.AddXY("RATE 4", enter)
            End If

            If enter > 0 And enter <= 10 Then
                rate = Me.rateChart.Series("Ratings").Points.AddXY("RATE 5", enter)
            End If



            ' get the next rating
            enter = InputBox(Prompt, Title)
        Loop
       

    End Sub

    
End Class



Is This A Good Question/Topic? 0
  • +

Replies To: Barchart with input ratings

#2 PLOstyle  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 24
  • Joined: 25-May 15

Re: Barchart with input ratings

Posted 18 November 2017 - 08:32 PM

I figured it out, checking to see how it works with arrays now............Just letting anyone know.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1