i have one form that read user input it will assign to a public variable, here is the code
Code:
ElseIf IsNumeric(txt1.Text) = True And IsNumeric(txt2.Text) = True And IsNumeric(txt3.Text) = True Then
                        Main.text1 = CInt(txt1.Text)
                        Main.text1 = CInt(txt2.Text)
                        Main.text1 = CInt(txt3.Text)
                        Main.Access = 1
                        Main.Custom = 1
                        Me.Close()
                        Main.Show()
                    End If
i have set the variable as this :
Code:
    Public text1 As Integer
    Public text2 As Integer
    Public text3 As Integer
the problem is when iam call at a function
Code:
test = (ascode * Main.text1)
test = (ascode / Main.text2)
test = (ascode - Main.text3)
the integer which set in "text1,text2,text3" changed into hex? while i need it in integer ;(

here is the value when called in that function
Code:
Main.text1 = &H28
Main.text2 = &H5
Main.text3 = &H3C
i even have tried convert it back to integer
Code:
test = (ascode * cint(Main.text1))
test = (ascode / cint(Main.text2))
test = (ascode - cint(Main.text3))
same always got hex? code

also trying this
Code:
ElseIf IsNumeric(txt1.Text) = True And IsNumeric(txt2.Text) = True And IsNumeric(txt3.Text) = True Then
                        Main.text1 = CInt(txt1.Text.ToString)
                        Main.text1 = CInt(txt2.Text.ToString)
                        Main.text1 = CInt(txt3.Text.ToString)
                        Main.Access = 1
                        Main.Custom = 1
                        Me.Close()
                        Main.Show()
End If

how to fix this?? any help appreciated , thx for reading this question