i have one form that read user input it will assign to a public variable, here is the code
i have set the variable as this :
the problem is when iam call at a function
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
i even have tried convert it back to integer
same always got hex? code
also trying this
End If
how to fix this?? any help appreciated , thx for reading this question
VB.NET:
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
VB.NET:
Public text1 As Integer
Public text2 As Integer
Public text3 As Integer
VB.NET:
test = (ascode * Main.text1)
test = (ascode / Main.text2)
test = (ascode - Main.text3)
here is the value when called in that function
VB.NET:
Main.text1 = &H28
Main.text2 = &H5
Main.text3 = &H3C
VB.NET:
test = (ascode * cint(Main.text1))
test = (ascode / cint(Main.text2))
test = (ascode - cint(Main.text3))
also trying this
VB.NET:
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