473,394 Members | 1,935 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.

FormatException with GetValues methods

Hi,

I'm using the OdbcDataReader.GetValues method (.NET Framework 1.1) to
populate an object array with the result of a SQL command.

The Database engine is Oracle 9.0.2.

When getting decimal values (with significant values after the entire part),
The GetValues methods raise a FormatException : "Input String was not in a
correct format".

For exemple : If the value in the decimal field is '123456,0000', it works
fine If the value is '123456,7890', it raises the execption.

I really need your help !
--
-----------------------------------------
Robin HOIZEY
4 rue du fourchet
37320 SAINT-BRANCHS
Tel : +33 2 47 26 34 50
Cel : +33 6 62 29 76 05
-----------------------------------------
Nov 21 '05 #1
1 1338
Robin,

Can you explain us what is in your question VB.Net related so that people in
the language.vb netgroup can help you with this?.

By instance what is the code you use that raises the error.

Cor

Hi,

I'm using the OdbcDataReader.GetValues method (.NET Framework 1.1) to
populate an object array with the result of a SQL command.

The Database engine is Oracle 9.0.2.

When getting decimal values (with significant values after the entire part), The GetValues methods raise a FormatException : "Input String was not in a
correct format".

For exemple : If the value in the decimal field is '123456,0000', it works
fine If the value is '123456,7890', it raises the execption.

I really need your help !
--
-----------------------------------------
Robin HOIZEY
4 rue du fourchet
37320 SAINT-BRANCHS
Tel : +33 2 47 26 34 50
Cel : +33 6 62 29 76 05
-----------------------------------------

Nov 21 '05 #2

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

Similar topics

2
by: smith | last post by:
It's a time saver to "bind" .Net enums to list and comboboxes and all the samples out there seem to use GetNames and GetValues pretty interchangeably. So I was wondering what the logic is to the...
2
by: rawCoder | last post by:
Hi, Consider following app.config <configuration> <appSettings> <add key="Fields" value="Field1" /> <add key="Fields" value="Field2" /> <add key="Fields" value="Field3" /> </appSettings>...
6
by: Gabriël | last post by:
Hi Folks, I've tried to do the following: public enum AssetType { Requested, InOrder, Received, InPlace, Gone }; (...) dropAssetType.DataSource = Enum.GetValues(AssetType); (...) For some...
2
by: Armin Bajramovic | last post by:
Hi, I have enum: public enum StatusEnum { Active = 'A', Nonactive = 'N', Deleted = 'D' }
5
by: CodeRazor | last post by:
I am dynamically creating htmlinputcheckbox controls. Each of these will have a name,id and value. The user make a selection by checking the checkboxes. I then want to retrieve the the...
1
by: Alfons Puig | last post by:
I need to specify an string array as a value in a NameValueCollection in web.config file ......... <AA> <BB> <add key="P1" value=?????> <add key="P2" value="String"> </BB> </AA>
0
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not...
1
by: Jeff Mason | last post by:
I am observing some puzzling behavior with the GetValues method of enumerations. I wonder if this something I just don't understand, or is this just wrong. The documentation for the GetValues...
1
by: differentsri | last post by:
THIS IS AN ASP.NET 1.1 APPLICATION IAM TRYING TO UPDATE THE FIELD BUT I AM NOT ABLE TO UPDATE IT? CAN U TELL THE REASON ? IT IS GIVING THE FOLLOWING ERROR BELOW I HAVE ALSO GIVEN THE CODE OF...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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: 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
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...
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.