Article View: borland.public.cppbuilder.database.ado
Article #1797Re: How to access SET an ADODataSet->Properties ?
From: Stefano
Date: Wed, 28 Jan 2004 18:28
Date: Wed, 28 Jan 2004 18:28
53 lines
2675 bytes
2675 bytes
Ciao Giuliano! [... ] > // make sure your dataset is opened > ADODataSet1->Active = true; > > _di_Properties Properties( ADODataSet1->Properties ); > > WideString PropList; > > for ( int Idx = 0 ; Idx < Properties->Count ; ++Idx ) > PropList += Properties->Item[Idx]->Name + " = " + > Properties->Item[Idx]->Value + "\r\n"; Nice shot Giuliano! I've create a TStringList object, in a loop like your sample have stored all Properties->Item[n]->Names values and then saved in a TXT file. Now I try to use this property names ... and are completely different to that's in the ADO libraries described in Microsoft. And I don't know where to find an explanation on how they works ... but it's an important start point! Thanks a lot for your precious help! Ciao Giuliano, a presto, Steve > > If you place a TMemo onto a form, you can assign the retrieved list to the > TMemo in this fashion: > > Memo1->Lines->Text = PropList; > > In this manner, you can see all the properties of the dataset. > > In the same fashion, you can investigate the properties of the associated > TADOConnection. Simply you have to substitute the line > > _di_Properties Properties( ADODataSet1->Properties ); > > with the line > > _di_Properties Properties( ADODataSet1->Connection->Properties ); > > Buona fortuna. > > Ciao > > Giuliano > >
Technical Details
Message-ID:
<4017ff37@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@newsgroups.borland.com> <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com> <4017be6a$1@newsgroups.borland.com> <4017ca8d.525610888@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,381735cb69b5c95 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-28 10:40:27 PST From: "Stefano" <s.dardari@tin.it> Newsgroups: borland.public.cppbuilder.database.ado References: <40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@newsgroups.borland.com> <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com> <4017be6a$1@newsgroups.borland.com> <4017ca8d.525610888@newsgroups.borland.com> Subject: Re: How to access SET an ADODataSet->Properties ? Date: Wed, 28 Jan 2004 19:28:05 +0100 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.183.125.54 Message-ID: <4017ff37@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075314487 80.183.125.54 (28 Jan 2004 10:28:07 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail