473,394 Members | 1,739 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,394 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 1195
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.