473,320 Members | 1,896 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,320 software developers and data experts.

Problems with ISnumeric

FHR
Hi,
i have a problem with this function,
i have installed in my computer the framework (v1.1.4322) and Isnunmeric set
to false the next operation:
isnumeric ("1")
in another computers that works fine but in my computer i have that results.
Code was "compiled" in another machine and i only install the application in
my machine.
Someone knowns why that runs in another way around ?

Jul 22 '05 #1
3 1191
do you mean the visual basic function IsNumeric? I don't believe there is a
bug in that function, there must be something wrong with your code, maybe
you could post it here?
"FHR" <FH*@discussions.microsoft.com> schrieb im Newsbeitrag
news:1D**********************************@microsof t.com...
Hi,
i have a problem with this function,
i have installed in my computer the framework (v1.1.4322) and Isnunmeric
set
to false the next operation:
isnumeric ("1")
in another computers that works fine but in my computer i have that
results.
Code was "compiled" in another machine and i only install the application
in
my machine.
Someone knowns why that runs in another way around ?

Jul 22 '05 #2
FHR
Hi cody,
i don't known what is happening(maybe some problems with another
program....) but the code is that:

If Not (IsNumeric(strintDepotNumber)) Then
Throw New Exception(String.Format("intDepotNumber parameter
must be numeric: '{0}' [{1} chars]", strintDepotNumber,
strintDepotNumber.Length))
Else
intDepotNumber = CInt(strintDepotNumber)
End If

and the msgbox say that(input parameter :789):

intDepotNumber parameter must be numeric: '789' [3 chars]

thanks

"cody" wrote:
do you mean the visual basic function IsNumeric? I don't believe there is a
bug in that function, there must be something wrong with your code, maybe
you could post it here?
"FHR" <FH*@discussions.microsoft.com> schrieb im Newsbeitrag
news:1D**********************************@microsof t.com...
Hi,
i have a problem with this function,
i have installed in my computer the framework (v1.1.4322) and Isnunmeric
set
to false the next operation:
isnumeric ("1")
in another computers that works fine but in my computer i have that
results.
Code was "compiled" in another machine and i only install the application
in
my machine.
Someone knowns why that runs in another way around ?


Jul 22 '05 #3
FHR,

Why do you not to test it change your code first in

\\\
If Not IsNumeric("789") Then
Throw New Exception(String.Format("intDepotNumber parameter
must be numeric: '{0}' [{1} chars]", strintDepotNumber,
strintDepotNumber.Length))
Else
intDepotNumber = CInt("789")
End If
///
I hope this helps,
Jul 22 '05 #4

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

Similar topics

4
by: Bill | last post by:
I have some values that I want to display as percent, such as the retail price/wholesale price. In some instances, the wholesale price is zero, so I get a division by zero error. What can I do...
0
by: bigDWK | last post by:
Hi- I'm having problems with the following stored procedure. Below first I have the stored proc, then I have the asp code that calls it. Randomly it won't insert the order into the database and a...
8
by: eje | last post by:
IsNumeric(value) should return false if value "can not be successfully converted to a Double." Instead I get the following error message: "Input string was not in a correct format." I use the...
8
by: John Bowman | last post by:
Hello, Does anyone have a good/reliable approach to implementing an IsNumeric() method that accepts a string that may represent a numerical value (eg. such as some text retrieved from an XML...
3
by: FHR | last post by:
Hi, i have a problem with this function, i have installed in my computer the framework (v1.1.4322) and Isnunmeric set to false the next operation: isnumeric ("1") in another computers that works...
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...
8
by: moondaddy | last post by:
What's the .net framework equivalent of the vb function isnumeric? If there isn't one, how can I test a string variable to see if its a number or not? I don't want to use isnumeric if possible ...
12
by: sck10 | last post by:
Hello, I am trying to determine if a value is NOT numeric in C#. How do you test for "Not IsNumeric"? protected void fvFunding_ItemInserting_Validate(object sender, FormViewInsertEventArgs...
17
by: MLH | last post by:
I have tested the following in immed window: ?isnumeric(1) True ?isnumeric(1.) True ?isnumeric(1.2) True ?isnumeric(1.2.2)
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.