Article View: borland.public.cppbuilder.database.ado
Article #2262Re: freeze a table and record
From: Daniel
Date: Mon, 22 Sep 2003 05:28
Date: Mon, 22 Sep 2003 05:28
21 lines
1648 bytes
1648 bytes
There is probably an easier way, but the only way I can think of is to place code on the table's BeforePost, BeforeEdit, BeforeInsert, etc Events that stop it from editing, changing record pointer and so on. the code required is very small ie. if (Freeze) Abort(); //where freeze is your bool item you set to freeze the table The Abort() will stop the event from being executed. "Kevin Chugh" <chugh@buffalo.edu> wrote in message news:3F671E11.27B1E02A@buffalo.edu... > hi - i want to temporarily freeze the cursor in a table (TTable), and > disallow editing and appending, but i want the table to remain active. > is there an easy way? > > thanks, > kevin >
Technical Details
Message-ID:
<3f6e886c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3F671E11.27B1E02A@buffalo.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,7701d1dbc0c5ca20 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-09-21 22:40:00 PST From: "Daniel" <admin@microsoft.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3F671E11.27B1E02A@buffalo.edu> Subject: Re: freeze a table and record Date: Mon, 22 Sep 2003 15:28:14 +1000 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 202.174.228.150 Message-ID: <3f6e886c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1064208492 202.174.228.150 (21 Sep 2003 22:28:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail