2 Replies - 756 Views - Last Post: 11 March 2012 - 06:04 PM Rate Topic: -----

#1 Swrzalinski  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 11-March 12

VB 10 Class Project/Single Array Usage

Posted 11 March 2012 - 05:53 PM

Hello, I'm doing a project for my beginners programming,logic, and design class. The project is a Sales Solution/Bonus Calculator. I really just want to know if I actually coded the array correctly. I've found the same project on here but I wasn't even really sure if what they had up was correct. I have a pretty solid idea of how to get through this I'm just feeling a bit overwhelmed. Any input or critizcism is appreciated. If you notice any other errors please point them out. I'm not looking for the answer I'm just looking for the path to get there on my own merit. Here's what I have so far:
Public Class Form1

    Private Sub Report_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateReport.Click
        ' Calculates and displays bonus
        Dim decSales() As Integer = {"2400", "1500", "1600", "2970", "1000", "6300", "1300", "2700"}
        Dim IntCode As Integer

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
        ' Closes Application
        Me.Close()
    End Sub

    Private Sub txtRateControl_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtRateControl.KeyPress
        If (e.KeyChar < "0" OrElse e.KeyChar > "9") _
            AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar <> "." Then
            e.Handled = True
        End If
    End Sub


    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BonusDisplay.TextChanged
        'Display Bonus

    End Sub
End Class


Is This A Good Question/Topic? 0
  • +

Replies To: VB 10 Class Project/Single Array Usage

#2 Toadill  Icon User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 411
  • Joined: 08-January 12

Re: VB 10 Class Project/Single Array Usage

Posted 11 March 2012 - 05:54 PM

What IDE are you using this looks like VB.NET please post this in the VB.NET section.
These two languages are very different
Btw your array looks right.

This post has been edited by Toadill: 11 March 2012 - 06:04 PM

Was This Post Helpful? 0
  • +
  • -

#3 Swrzalinski  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 11-March 12

Re: VB 10 Class Project/Single Array Usage

Posted 11 March 2012 - 06:04 PM

How do I remove this post? Sorry new around here.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1