R
Radith Silva
Dear All;
Thanx for helpt with previous question. Still learning??
FROM A VB 6.0 BOOK:
any way;
I have used IsNumeric function and check all namespace conflicts and all
and nothing seems to solve the error.
In my last question: I was writing;
msgbox "Please .....
WHEN I FOUND OUT THAT I SHOULD
MessageBox.Show("....
WHICH WORKED. THANX
Any similiar little thing that could be wrong with the way I'm writing
now:
Const curPrice As Integer = 50.5
Dim intQuantity As Integer
If IsNumeric(txtQuantity.Text) Then
intQuantity = Val(txtQuantity.Text)
lblDue.Text = curPrice * intQuantity
Else
MessageBox.Show("Non-numeric Data Entered", "IsNumeric",
MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
End If
ERROR: "IsNumeric is a namespace" BUT I HAVE CHECKED FOR ALL
CONFLICTIONS USING THE OBJECT BROWSER.
Thanx in advance.
Radith
Thanx for helpt with previous question. Still learning??
FROM A VB 6.0 BOOK:
any way;
I have used IsNumeric function and check all namespace conflicts and all
and nothing seems to solve the error.
In my last question: I was writing;
msgbox "Please .....
WHEN I FOUND OUT THAT I SHOULD
MessageBox.Show("....
WHICH WORKED. THANX
Any similiar little thing that could be wrong with the way I'm writing
now:
Const curPrice As Integer = 50.5
Dim intQuantity As Integer
If IsNumeric(txtQuantity.Text) Then
intQuantity = Val(txtQuantity.Text)
lblDue.Text = curPrice * intQuantity
Else
MessageBox.Show("Non-numeric Data Entered", "IsNumeric",
MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
End If
ERROR: "IsNumeric is a namespace" BUT I HAVE CHECKED FOR ALL
CONFLICTIONS USING THE OBJECT BROWSER.
Thanx in advance.
Radith