Hello fellows!

I have a problem with this type of code:

Code:
Private sub button1_click()

Dim firstp as integer
Dim secondp as integer

Firstp = textbox1.text
Secondp = textbox2.text

If firstp >= secondp then
Msgbox("1 is equal or bigger")
Else
Msgbox("2 is bigger")
End if

This code sometimes works and sometimes gived me a false reault, like if textbox1 value is 50 and textbox2 value is 54
It still sais sometimes that the value of the first one is bigger