Article View: borland.public.delphi.database.dotnet
Article #35No SqlConnection.State.ToString in Delphi?
From: Hertha Steck
Date: Sun, 15 Apr 2007 13:26
Date: Sun, 15 Apr 2007 13:26
15 lines
1383 bytes
1383 bytes
I'm working through some examples from ADO.NET books not written for
Delphi. So I put this into the handler for a button:
MessageBox.Show('SQL-Verbindung ist ' + m_conDBSQL.State.ToString);
Compile error: E2473 Record or class type necessary (my translation from
german)
The help contains very similar examples, but again uses VB.NET and C# -
the .NET help doesn't seem to have any Delphi example code.
What's the right way to convert a ConnectionState to a string?
Thank you,
Hertha
Technical Details
Message-ID:
<4622280d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,e331b6942e04b0ba,start X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 15 Apr 2007 15:26:24 +0200 From: Hertha Steck <nulla.epistola@web.de> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.delphi.database.dotnet Subject: No SqlConnection.State.ToString in Delphi? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.94.200.230 Message-ID: <4622280d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176643597 217.94.200.230 (15 Apr 2007 06:26:37 -0800) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail