By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,538 Members | 875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,538 IT Pros & Developers. It's quick & easy.

IsNumeric..??

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I did not understand the question clearly. IsNumeric is in the Microsoft.VisualBasic namespace, if that is what you wanted to know.

"Radith Silva" wrote:
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2

P: n/a
Radith Silva schrieb:
Thanx for helpt with previous question. Still learning??
FROM A VB 6.0 BOOK:
Notice that VB6 <> VB.NET.
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
That didn't actually solve the problem, it's just a replacement.
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.


Mhm... Does that occur in a simple "one form" project (blank project)
too? Do you use VS 2002 or 2003?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

P: n/a
Hi Radith,

Are you using VS net?

If so, I would in that case try to make a new project and try this code
again.

If not
Set in your VBC parameters the right reference to the Microsoft.VisualBasic
namespace.

However tell if you are using the VS or VB.net IDE?

Cor
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.