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

"Object must implement IConvertible. "

dan
I am using VB.NET 2003 and SQL Server 2000.
My program inserts new rows in a SQL table based on data read from a file.
I generated the commands and the stored procedures with the DataAdapter
wizard.
The execution of the Insert Command throws the exception: "Object must
implement IConvertible. "
1. What object does it refer to? The Command itself?
2. On the other hand, in the VS Help file all IConvertible members have this
warning: "This member supports the .NET Framework infrastructure and is not
intended to be used directly from your code."

Your help will be much appreciated.
Thanks, Dan

Nov 20 '05 #1
3 2619
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl...
I am using VB.NET 2003 and SQL Server 2000.
My program inserts new rows in a SQL table based on data read from a file.
I generated the commands and the stored procedures with the DataAdapter
wizard.
The execution of the Insert Command throws the exception: "Object must
implement IConvertible. "
1. What object does it refer to? The Command itself?
2. On the other hand, in the VS Help file all IConvertible members have this warning: "This member supports the .NET Framework infrastructure and is not intended to be used directly from your code."

Your help will be much appreciated.
Thanks, Dan

Nov 20 '05 #2
Hi,

What is the type of objReservation.r?
Ken

-------------------------------

"dan" <de*@deamon.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here it is. Thanks, Dan


"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:O$**************@TK2MSFTNGP09.phx.gbl...
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl...
> I am using VB.NET 2003 and SQL Server 2000.
> My program inserts new rows in a SQL table based on data read from a file. > I generated the commands and the stored procedures with the DataAdapter
> wizard.
> The execution of the Insert Command throws the exception: "Object must
> implement IConvertible. "
> 1. What object does it refer to? The Command itself?
> 2. On the other hand, in the VS Help file all IConvertible members have

this
> warning: "This member supports the .NET Framework infrastructure and is

not
> intended to be used directly from your code."
>
> Your help will be much appreciated.
> Thanks, Dan
>
>
>



Nov 20 '05 #3
dan
Hello Ken,
objReservation is an object of class Reservation. But it is not used in the
current version of the program. All references to it were actually
outcommented and
are now completely removed, see new source file attached to a separate
message.
Thanks, Dan

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

What is the type of objReservation.r?
Ken

-------------------------------

"dan" <de*@deamon.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Here it is. Thanks, Dan


"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message
news:O$**************@TK2MSFTNGP09.phx.gbl...
Please post your code

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"dan" <de*@deamon.com> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl...
> I am using VB.NET 2003 and SQL Server 2000.
> My program inserts new rows in a SQL table based on data read from a

file.
> I generated the commands and the stored procedures with the DataAdapter > wizard.
> The execution of the Insert Command throws the exception: "Object must > implement IConvertible. "
> 1. What object does it refer to? The Command itself?
> 2. On the other hand, in the VS Help file all IConvertible members have this
> warning: "This member supports the .NET Framework infrastructure and is not
> intended to be used directly from your code."
>
> Your help will be much appreciated.
> Thanks, Dan
>
>
>




Nov 20 '05 #4

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

Similar topics

11
by: Florian Loitsch | last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo, automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a question concerning the function-parameters: According to...
7
by: deko | last post by:
I'm getting intermittent "Object Invalid or No Longer Set" errors in my Access 2002 mdb. What causes these errors? Has anyone dealt with this before? I can't trace it because it's not easy...
3
by: Nak | last post by:
Hi there, I am trying to make a collection that will work in the "Object collection editor" dialog. I have implimeneted ICollection, IList and IEnumerable and now I have an "unnamed"...
18
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12,...
1
by: dan | last post by:
I am using VB.NET 2003 and SQL Server 2000. My program inserts new rows in a SQL table based on data read from a file. I generated the commands and the stored procedures with the DataAdapter...
1
by: jk | last post by:
Hi, I'm trying to add an object to a checked listbox using VC++2005 Express. I tries adding a managed String (String ^) and objects that implement their own version of the ToString() method. I...
16
by: Steve Chapel | last post by:
When I load the page <https://bugzilla.mozilla.org/attachment.cgi?id=237739with Internet Explorer 7 RC 1, I get the error "Object Expected" at line 174. When I click on the button, I also get the...
4
by: My Pet Programmer | last post by:
Ok guys, I'm really looking for someone to tell me how bad a hack this is, and if I'm close to where I should be with it. The basic situation is that I have a class which creates a basic...
0
by: dan | last post by:
Hi, I've been using a GridView for some time but this is the first time I need to delete a row in the grid whose primary key consists of 2 fields (table columns). I have a table with primary...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.