I have a variable HS which contains the a numer, and I have the following to compare it:
Hs1, H2, H3 contains first, second and third place saved in the registry which is "loaded" in to Hs1, Hs2, Hs3 in the Form_Load
But even if Hs is < Hs1, it still tells me that I have the first place!! What am I doing wrongCode:If Hs > Hs1 Then NewScore = InputBox("You placed first with " & Hs & " points! Type in your name!") SaveSetting "PingPong", "Highscores", "1st", Hs SaveSetting "PingPong", "Highscores", "Name1", NewScore Else If Hs > Hs1 Then NewScore = InputBox("You placed second with " & Hs & " points! Type in your name!") SaveSetting "PingPong", "Highscores", "2nd", Hs SaveSetting "PingPong", "Highscores", "Name2", NewScore Else If Hs > Hs2 Then NewScore = InputBox("You placed third with " & Hs & " points! Type in your name!") SaveSetting "PingPong", "Highscores", "3rd", Hs SaveSetting "PingPong", "Highscores", "Name3", NewScore End If End If End If
I really hope you can help me out!![]()




Reply With Quote