I'll upload the project files.
I havn't named any of the labels but have assigned a variable to the 6 labels that need sorting.
Code:
Dim point1 As Integer
Dim point2 As Integer
Dim point3 As Integer
Dim point4 As Integer
Dim team1 As String
Dim team2 As String
Dim team3 As String
Dim team4 As String
Dim goal1 As Integer
Dim goal2 As Integer
Dim goal3 As Integer
Dim goal4 As Integer
point1 = Label42.Caption
point2 = Label43.Caption
point3 = Label44.Caption
point4 = Label45.Caption
team1 = Label38.Caption
team2 = Label39.Caption
team3 = Label40.Caption
team4 = Label41.Caption
goal1 = Label62.Caption
goal2 = Label63.Caption
goal3 = Label64.Caption
goal4 = Label65.Caption
Those are the variable names and such. I can't post the code im using to sort them because thats the problem, i have none. Thats what i need.
Updating the form is done via a procedure called Team, which is called when the ComboBox holding the teams is either scrolled, validated, clicked or changed.
Attached is a rar with the project files (using VB6 btw).
Bookmarks