Article View: borland.public.cppbuilder.database.ado
Article #5782Re: Recordset Property syntax
From: Tony
Date: Mon, 12 Feb 2001 17:09
Date: Mon, 12 Feb 2001 17:09
40 lines
2223 bytes
2223 bytes
Hi Giuliano,
After playing around with your example I was able to come up with following
that eliminates the need for the loop to find the specific property. The
_di_Properties declaration is the key. Thank you!!!
_di_Properties Properties(( ADODataSet->Recordset->Properties );
int V = Properties->Item[WideString("Update Resync")]->Value; //
original value
Properties->Item[WideString("Update Resync")]->Value =
adResyncAutoIncrement + adResyncUpdates;
V = Properties->Item[WideString("Update Resync")]->Value; // new
value
Giuliano <gcardinali@remove.adhoc.net> wrote in message
news:3a87f4b7.319479567@newsgroups.borland.com...
> On Mon, 12 Feb 2001 08:51:09 -0500, "Tony" <hse@hill-soft.com> wrote:
>
> >Can someone show me the cppbuilder syntax for setting/getting ado
recordset
> >properties? For example:
> >Rs->Properties("Update Resync")->Value = adResyncUpdates.
> >
>
> Hi Tony,
>
> try with something like this (untested):
>
> _di_Properties Properties( ADODataSet->Recordset->Properties );
>
> for( int Idx = 0 ; Idx < Properties->Count ; Idx++ )
> if( Properties->Item[Idx]->Name == WideString( "Update Resync" ) )
> Properties->Item[Idx]->Value = adResyncUpdates;
>
> Ciao
>
> Giuliano
Technical Details
Message-ID:
<3a881822_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!63.212.151.36References:
<3a87e9bc$1_2@dnews> <3a87f4b7.319479567@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,622edc0bdb7c8cb2 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-02-12 09:24:02 PST From: "Tony" <hse@hill-soft.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3a87e9bc$1_2@dnews> <3a87f4b7.319479567@newsgroups.borland.com> Subject: Re: Recordset Property syntax Date: Mon, 12 Feb 2001 12:09:07 -0500 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 63.212.151.36 Message-ID: <3a881822_1@dnews> X-Trace: 12 Feb 2001 09:06:42 -0800, 63.212.151.36 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!63.212.151.36