🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to get FieldName of primary key in ADO dataset

#3215
From: Dmitry
Date: Tue, 10 Dec 2002 09:44
13 lines
1284 bytes
I have routine which takes TADOQuery as parameter.

Inside it I have to change  SQL query, refresh data and restore cursor
position in
the dataset.(if record exsist)
I can make it only knowing primary key value in dataset, But for this i have
to
obtain primary key field name of TADOQuery.
Passing name of primary key in routine as parameter not nice to me.

Please help.

Dmitry.
Technical Details
Message-ID: <3df5b8d9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,de3cbcfbdc242ecc,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-10 01:53:58 PST
From: "Dmitry" <programmer@mail.spbnit.ru>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to get FieldName of primary key in ADO dataset
Date: Tue, 10 Dec 2002 12:44:28 +0300
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 212.48.199.27
Message-ID: <3df5b8d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039513817 212.48.199.27 (10 Dec 2002 01:50:17 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail