What's the structure of a synovial joint?

Can someone tell me whats wrong with my program.This project is one of a array that have a structure?

  • The report of the project will be sen to the printer. It not loading right and I really need some help. How do you string the print documents to the menu file on the same form? Please help me!! Public Class IncomeArray Structure Income Dim ID As String Dim HH As Integer Dim EARN As Integer Dim BelowPovertyLevelBoolean As Boolean End Structure Private IncomeSurvey(20) As Income Private ProvertyLevel(8) As Integer Private CountInteger, TotalIncomeInteger As Integer Private Sub IncomeArray_Load(sender As Object, e As System.EventArgs) Handles Me.Load ProvertyLevel(0) = 3480 ProvertyLevel(1) = 10210 ProvertyLevel(2) = 13690 ProvertyLevel(3) = 17170 ProvertyLevel(4) = 20650 ProvertyLevel(5) = 24130 ProvertyLevel(6) = 27610 ProvertyLevel(7) = 31090 ProvertyLevel(8) = 3457 End Sub Private Sub DataButton_Click(sender As System.Object, e As System.EventArgs) Handles DataButton.Click Try IncomeSurvey(CountInteger).ID = IDTextBox.Text Catch MessageBox.Show("Entry must be numeric", "Data Entry Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) With IDTextBox .Clear() .Focus() End With End Try Try IncomeSurvey(CountInteger).HH = HHTextBox.Text Catch MessageBox.Show("Entry must be numeric", "Data Entry Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) With HHTextBox .Clear() .Focus() End With End Try Try IncomeSurvey(CountInteger).EARN = YITextBox.Text Catch MessageBox.Show("Entry must be numeric", "Data Entry Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) With YITextBox .Clear() .Focus() End With End Try 'Calculate amount to add for additional persons Dim StatePovertyLevelInteger As Integer StatePovertyLevelInteger = IncomeSurvey(CountInteger).HH If IncomeSurvey(CountInteger).HH > 8 Then Dim ExcessPersonsInteger, AdditionalAmountInteger As Integer ExcessPersonsInteger = IncomeSurvey(CountInteger).HH - 8 AdditionalAmountInteger = ExcessPersonsInteger * ProvertyLevel(0) StatePovertyLevelInteger = ProvertyLevel(8) + AdditionalAmountInteger Else StatePovertyLevelInteger = ProvertyLevel(IncomeSurvey(CountInteger)… End If

  • Answer:

    We can't help unless you tell us more what the program is supposed to do. I assume it is Visual Basic, but that would help also. And get rid od all the catch, try, and with statements. All they do is clutter things up. The try/catch should only be for calls you expext to fail sometimes, and nothing here should ever fail. And use the object name before all the method calls, so you don't need the with statement. It is really, really ugly. And add a lot more comments.

Baby Programmer at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.