🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bookmark

#2226
From: michele
Date: Sun, 19 Oct 2003 23:22
33 lines
1610 bytes
I must use refresh or requery or close and open because I receive an error
on transaction!
After a refresh is it possible to show the new or modified record? If yes
can anyone tell me how?

thanks
Michele


<michele> ha scritto nel messaggio news:3f923dae@newsgroups.borland.com...
> Why if I'm using the following code the variable value is always NULL?
>
>   TBookmark SavePlace;
>   Variant PrevValue;
>
>    if (ADOConnection1->InTransaction == true)
>    {
>         ADOConnection1->CommitTrans();
>
>   SavePlace = ADOQuery1->GetBookmark();
>     ADOQuery1->Refresh();
>   ADOQuery1->GotoBookmark(SavePlace);
>   ADOQuery1->FreeBookmark(SavePlace);
>       ADOConnection1->BeginTrans();
>
>   }
> }
>
> Thanks
> Michele
>
>
>
Technical Details
Message-ID: <3f931ca0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.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
References: <3f923dae@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1fa4b82e3bac8abb
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-10-19 16:39:10 PST
From: <michele>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3f923dae@newsgroups.borland.com>
Subject: Re: bookmark
Date: Mon, 20 Oct 2003 01:22:15 +0200
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 62.94.2.59
Message-ID: <3f931ca0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066605728 62.94.2.59 (19 Oct 2003 16:22:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.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