🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by kev Mon, 07 Nov 2005 14:50
CommandText
#539
Author: kev
Date: Mon, 07 Nov 2005 14:50
9 lines
1204 bytes
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
Re: CommandText
#540
Author: Mike Shkolnik
Date: Mon, 07 Nov 2005 15:55
24 lines
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
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads