🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1790

Re: How to access SET an ADODataSet->Properties ?

#1790
From: Giuliano
Date: Tue, 27 Jan 2004 19:48
30 lines
2118 bytes
On Tue, 27 Jan 2004 16:38:22 +0100, "Stefano" <s.dardari@tin.it> wrote:

>Debugger Exception Notification
>----------------------------------
>Project ADOdbSample.exe raised exception class EAccessViolation with message
>: 'Access violation at address 0040410F in module 'ADOdbSample.exe'. Read of
>Address '00000000'. Process Stopped ... ecc...
>
>
>Just in the line of code where I try to set the property .. can be an
>incorrect property string ?
>
>Thanks in advance!

Hi Steve,

    try to use the Value property. Have a look at the following snippet
(untested):

    const WideString PropertyName = "Jet OLEDB:Flush Transaction Timeout";

    _di_Properties Properties( ADODataSet1->Recordset->Properties );
    Properties->Item[ PropertyName ]->Value = 2000;


Hope this helps.

Ciao!

Giuliano
Technical Details
Message-ID: <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news.octanews.net!hermes.visi.com!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@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-27 12:10:25 PST
From: Giuliano <gcardinali@remove.adhoc.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How to access SET an ADODataSet->Properties ?
Date: Tue, 27 Jan 2004 20:48:38 +0100
Message-ID: <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com>
References: <40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.72.236.131
X-Trace: newsgroups.borland.com 1075232931 81.72.236.131 (27 Jan 2004 11:48:51 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news.octanews.net!hermes.visi.com!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail