473,230 Members | 1,526 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,230 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 1732
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.