🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #648

Re: How do I loop around a dataset ?

#648
From: Viatcheslav V. Vassiliev
Date: Fri, 24 Sep 2004 10:15
38 lines
2550 bytes
This should not work at compile time and produce "Undeclared identifier
Create" or similar message - DataRow (namespace is System.Data, not
System.Data.SqlClient) has no public constructor and can be created only
from other objects - for example, with DataTable.NewRow(). DataRow can not
exist as stand-alone object that is not part of DataTable.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Marc Scheuner" <no.spam@for.me> ???????/???????? ? ???????? ?????????:
news:38h7l0djqan4cgdd8vv3iqn0nseq0q0qmu@4ax.com...
> >This works fine in C# but in Delphi I am having trouble declaring a
DataRow:
> >> DataRow oMyWorkRow := myDataTable.Rows[someIndex];
> >
> >var
> >    dbRow : DataRow;
> >Begin
> >    dbRow := DataRow.Create;
> >End;
> >
> >This is not working. Should I declare a DataRow in another way ?!?
>
> How is it not working? Do you get an error when you compile it?? If so
> - did you add a "uses System.Data.SqlClient" to your uses clause??
>
> Is it not working at runtime?? Does it throw an error / exception? If
> so, which one??
>
> Marc
> ================================================================
> Marc Scheuner                        May The Source Be With You!
> Bern, Switzerland                         m.scheuner(at)inova.ch
Technical Details
Message-ID: <4153f3c4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <413702a3$1@newsgroups.borland.com> <oi9ej09cdj7rjv8s67b2au1ea87kgp1dm0@4ax.com> <4152b899@newsgroups.borland.com> <38h7l0djqan4cgdd8vv3iqn0nseq0q0qmu@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,86650b4da60f7bbe
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.delphi.database.dotnet
References: <413702a3$1@newsgroups.borland.com> <oi9ej09cdj7rjv8s67b2au1ea87kgp1dm0@4ax.com> <4152b899@newsgroups.borland.com> <38h7l0djqan4cgdd8vv3iqn0nseq0q0qmu@4ax.com>
Subject: Re: How do I loop around a dataset ?
Date: Fri, 24 Sep 2004 14:15:32 +0400
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <4153f3c4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096020932 213.234.218.42 (24 Sep 2004 03:15:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail