473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Isnumeric and importing vb functions

Hi,

is there a dotnet function (other than the old isnumeric from VB) to check
whether an object is numeric or not.

also I notice that all the old vb functions such as split / isnumeric /
ubound etc are still availible by default in any VB.net web application.
is this because the vb library is being imported??
would it be best to totally remove this library (assuming that it is being
imported - which I can't see in my references) so that references to old vb
style functions will result in a compile time error.

many thanks in advance

cheers

martin.
Nov 18 '05 #1
3 1737
Hi Martin,

You can use IsNumeric in VB.NET just fine. Don't worry about importing the
VB libraries. I read that some routines are optimized for VB so workarounds
could be slower.

http://msdn.microsoft.com/library/de...tisnumeric.asp

Ken

"martin" <St**************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

is there a dotnet function (other than the old isnumeric from VB) to check
whether an object is numeric or not.

also I notice that all the old vb functions such as split / isnumeric /
ubound etc are still availible by default in any VB.net web application.
is this because the vb library is being imported??
would it be best to totally remove this library (assuming that it is being
imported - which I can't see in my references) so that references to old
vb
style functions will result in a compile time error.

many thanks in advance

cheers

martin.


Nov 18 '05 #2
It's great to know that is numeric works,

however, do you know if there is a dotnet method that has replace it,

for example TRIM() had been replaced with string.trim..

I'm just curious, thats all.

cheers

martin.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hi Martin,

You can use IsNumeric in VB.NET just fine. Don't worry about importing the
VB libraries. I read that some routines are optimized for VB so workarounds could be slower.

http://msdn.microsoft.com/library/de...tisnumeric.asp
Ken

"martin" <St**************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

is there a dotnet function (other than the old isnumeric from VB) to check whether an object is numeric or not.

also I notice that all the old vb functions such as split / isnumeric /
ubound etc are still availible by default in any VB.net web application.
is this because the vb library is being imported??
would it be best to totally remove this library (assuming that it is being imported - which I can't see in my references) so that references to old
vb
style functions will result in a compile time error.

many thanks in advance

cheers

martin.

Nov 18 '05 #3
> It's great to know that is numeric works,

however, do you know if there is a dotnet method that has replace it,
Yes, the .Net method that replaced it is IsNumeric(). To be more precise,
the static .Net method that replaced it is
Microsoft.VisualBasic.Information.IsNumeric().

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"martin" <St**************@yahoo.com> wrote in message
news:OI*************@TK2MSFTNGP12.phx.gbl... It's great to know that is numeric works,

however, do you know if there is a dotnet method that has replace it,

for example TRIM() had been replaced with string.trim..

I'm just curious, thats all.

cheers

martin.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hi Martin,

You can use IsNumeric in VB.NET just fine. Don't worry about importing the
VB libraries. I read that some routines are optimized for VB so

workarounds
could be slower.

http://msdn.microsoft.com/library/de...tisnumeric.asp

Ken

"martin" <St**************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

is there a dotnet function (other than the old isnumeric from VB) to

check whether an object is numeric or not.

also I notice that all the old vb functions such as split / isnumeric / ubound etc are still availible by default in any VB.net web application. is this because the vb library is being imported??
would it be best to totally remove this library (assuming that it is being imported - which I can't see in my references) so that references to old vb
style functions will result in a compile time error.

many thanks in advance

cheers

martin.


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Doug | last post by:
Is there a simple way to accomplish the following without importing vb6 into a .net project? If IsNumeric(txtTextBox1.Text) Then....
4
by: Eugene Anthony | last post by:
I have received the following feedback for the two functions bellow: "The ISNUMERIC test is WORTHLESS for checking for an INT value, because ISNUMERIC will happily accept DOUBLE values, such as...
14
by: Kenny | last post by:
Hello, I would like to know if the function IsNumeric requires a header like #include <iostream> to be functionnal thanks ken
1
by: Bernardo Heynemann | last post by:
I couldn´t find the isNumeric function last night. So I did my own. But what do you think of Common Functions? What´s the best way to keep them in my ASP.NET (C#) project? One class PublicCode...
5
by: Steve Kershaw | last post by:
Hello, I have a need to see if a string is numeric or alphabetic. I understand that Visual Basic has a method called "IsNumeric(string)" but C# dosen't appear to have one. Any ideas? Thanks for...
4
by: John A Grandy | last post by:
IsNumeric() and IsDate() are "leftovers" from the VB6 days ... looking forward, perhaps it would be better not to use them .... does anyone have suggestions on replacements ?
7
by: Nathan Truhan | last post by:
All, I think I may have uncovered a bug in the IsNumeric function, or at least a misunderstanding on functionality. I am writing a Schedule Of Classes Application for our campus and have a...
7
by: Vikas Kumar | last post by:
For Each item In Request.Form If IsNumeric(item) Then Try Approved(item) Catch ex As Exception Response.Write(ex.Message) End Try End If Next
9
by: =?Utf-8?B?VG9ueQ==?= | last post by:
Can anybody tell why IsNumeric("5-") is true?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.