Dim multi() As Integer
Dim mayo As Integer, may As Integer, men As Integer
Dim n As Integer
Private Sub Command1_Click()
List1.AddItem Text1.Text
Text1.Text = ""
Text1.SetFocus
End Sub
Private Sub Command2_Click()
Dim p As Integer
p = List1.ListCount
List1.RemoveItem (p - 1)
End Sub
Private Sub Command3_Click()
nume = List1.ListCount
ReDim multi(nume)
For i = 0 To nume - 1
multi(i) = List1.List(i)
Next i
Call menu(multi, nume)
List1.Clear
Text1.SetFocus
For i = 0 To nume - 1
List1.List(i) = multi(i)
Next i
End Sub
Private Sub Command4_Click()
List1.Clear
Text1.SetFocus
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
Private Sub Command6_Click()
nume = List1.ListCount
may = List1.List(0)
mx (may)
n = mx(may)
If n = 1 Then
Text2.Text = Str(may)
End If
End Sub
Private Sub Command7_Click()
nume = List1.ListCount
men = List1.List(0)
mn (men)
n = mn(men)
If n = 1 Then
Text3.Text = Str(men)
End If
End Sub
Private Sub Command8_Click()
Dim i As Integer
Dim suma As Integer
suma = 0
nume = List1.ListCount
For i = 0 To nume - 1
suma = suma + List1.List(i)
Next i
Text4.Text = suma
End Sub