Help with solution

  • Thread starter Thread starter Mike Busch
  • Start date Start date
M

Mike Busch

I am a newbie, have a project that requires me to take
users input of "Name" and "Pieces Completed". I must as
the book requests, after inputting all the data, have a
label display the name of the user that produces the
most "Pieces Completed". I don't know how to perform
this, even if I had the name of this type of procedure it
would help. Thanks in advance.
 
Mike Busch said:
I am a newbie, have a project that requires me to take
users input of "Name" and "Pieces Completed". I must as
the book requests, after inputting all the data, have a
label display the name of the user that produces the
most "Pieces Completed". I don't know how to perform
this, even if I had the name of this type of procedure it
would help. Thanks in advance.

How do you store the (Name, Pieces Completed) pairs?
 
They are both Txt.Boxes, The Most earned is a Lbl. So
txt.Name and txt.PiecesCompleted need to have the
employee's name with the highest count of Pieces
Completed, display in the lblMostEarned. Thanks in
advance.
 
Mike Busch said:
They are both Txt.Boxes, The Most earned is a Lbl. So
txt.Name and txt.PiecesCompleted need to have the
employee's name with the highest count of Pieces
Completed, display in the lblMostEarned. Thanks in
advance.

\\\
Private m_PiecesCompleted As Integer
..
..
..
Dim i As Integer = Integer.Parse(Me.TextBox1.Text)
If i > m_PiecesCompleted Then
m_PiecesCompleted = i
Me.lblMostEarned.Text = m_PiecesCompleted.ToString()
Me.lblName = Me.TextBox2.Text
Else
MsgBox("Not the best")
End If
///
 
Back
Top