468,785 Members | 1,536 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,785 developers. It's quick & easy.

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 1606
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Doug | last post: by
4 posts views Thread by Eugene Anthony | last post: by
14 posts views Thread by Kenny | last post: by
1 post views Thread by Bernardo Heynemann | last post: by
5 posts views Thread by Steve Kershaw | last post: by
4 posts views Thread by John A Grandy | last post: by
7 posts views Thread by Nathan Truhan | last post: by
7 posts views Thread by Vikas Kumar | last post: by
9 posts views Thread by =?Utf-8?B?VG9ueQ==?= | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.