🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Creating Persistent Fields at runtime

#2394
From: Sydney Delieu
Date: Thu, 10 Jul 2003 09:04
37 lines
1856 bytes
Hi All,

I use Borland C++ Builder 6 Enterprise, and have ADO 2.7 installed on
Windows XP Pro.

I have created a class called 'Customer', which looks something like:

class Customer
{
    private:
    TADOQuery *CustomerDetails;
    .....

}

Customer::Customer()
{
    CustomerDetails = new TADOQuery(DM1);
    ......
}

I need to create persistent fields for CustomerDetails. Is this possible to
do this at runtime? Where can I find an example? I realise that I could
simply create a TADOQuery component on my DataModule form and then use the
Fields Editor at designtime, but this is not desirable.

Any help would be really appreciated.

Thanks,
Sydney Delieu.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.497 / Virus Database: 296 - Release Date: 04/07/2003
Technical Details
Message-ID: <3f0d2c22@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-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!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,746bd8ba9835675e,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-07-10 02:11:01 PST
From: "Sydney Delieu" <sydbee@supanet.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Creating Persistent Fields at runtime
Date: Thu, 10 Jul 2003 10:04:29 +0100
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.105.221.20
Message-ID: <3f0d2c22@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057827874 213.105.221.20 (10 Jul 2003 02:04:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail