Saeem My English is not good enough to explain my problem lol,
here is my problem condition
first i declared a public variable on "Main.Form"
VB Code:
Public text1 As Integer Public text2 As Integer Public text3 As Integer
On the second form i have 3 textbox and 1 button,when the button clicked it will first verified the data whether numeric or not and if it's ok continue to set the value from the three text box into 3 public variable on Main.Form
VB 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) End If
and also i have a function in module which something like this :
VB Code:
test = (ascode * Main.text1) test = (ascode / Main.text2) test = (ascode - Main.text3)
somehow when i trigger the function the Main.Text1,Main.Text2,Main.Text3 value inside of the module always changed into hex value!,
Sample :
VB Code:
Main.text1 = &H28 Main.text2 = &H5 Main.text3 = &H3C
how to always keep real integer inside the module?? i didn't experience this on normal Form , already tried with Cint(Main.text1) , all same always hex value![]()




,
Reply With Quote