Article View: borland.public.cppbuilder.database.ado
Article #540Re: CommandText
From: Mike Shkolnik
Date: Mon, 07 Nov 2005 15:55
Date: Mon, 07 Nov 2005 15:55
24 lines
1658 bytes
1658 bytes
AnsiString s = static_cast<TADODataSet*>(yourDBGrid->DataSource->Dataset)->CommandText; -- With best regards, Mike Shkolnik EMail: mshkolnik@scalabium.com http://www.scalabium.com "kev" <kev@isp.com> wrote in message news:436f69b2$1@newsgroups.borland.com... > I have a TBGrid on a form that has various adoDataSets attached to it > depending on what the user wants to see at the time. I am trying to display > the CommandText string of the currently attached DataSet. I can see by > drilling down into the object inspector at design time my default > DataSource, DataSet, then finally CommandText property. I can't seem to get > that property in code however. Is there a way for me to do that? > > thanks, > Kev > >
Technical Details
Message-ID:
<436f78f0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<436f69b2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d0c578d2a0b4f385 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Shkolnik" <mshkolnik2002@ukr.net> Newsgroups: borland.public.cppbuilder.database.ado References: <436f69b2$1@newsgroups.borland.com> Subject: Re: CommandText Date: Mon, 7 Nov 2005 17:55:46 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 62.244.34.86 Message-ID: <436f78f0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131378928 62.244.34.86 (7 Nov 2005 07:55:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail