🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #195

Re: Exchanging Advantage And BDE Tables during run-time

#195
From: Smola
Date: Tue, 02 May 2000 00:00
20 lines
1922 bytes
"Bruce Roberts" <no.junk.please.ber@attcanada.net> wrote:

>
>I'm not sure about what do to at design time (possibly a tDataSet descendant
>whoose constructor redirected the construction to the appropriate
>BDE/Advantage constructor), but at run time the following should work.
>

Well, the code seems to be OK but the original question does not want all the complicated stuff like creating objects and all that.

>> > Is there a way to have the table I'm using (be it a TTable or a
>> > TAdsTable) assigned to a single variable and use it with out having to
>> > figure out what type it is before using it??

As far as the assignement is concerned, you can assign any kind of your variable to anything, as long as you know what are you doing. I've been
assigning "whoknowswhat" to TTable and TQuery. The important thing is that it is a descendant of the TDataSet.

Smola
-- 
Slowly growing deaf.
Technical Details
Message-ID: <390e27d9.2575935@news.tel.hr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <390cccae.6779618@postoffice> <8ej96l02qr0@news2.newsguy.com> <j1jP4.34288$Xk2.126682@tor-nn1.netcom.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,d54235570ec33841
X-Google-Attributes: gidffff5,public
X-Google-Thread: f8256,d54235570ec33841
X-Google-Attributes: gidf8256,public
X-Google-Thread: 109d99,d54235570ec33841
X-Google-Attributes: gid109d99,public
From: asmolcic@foi.hr (Smola)
Subject: Re: Exchanging Advantage And BDE Tables during run-time
Date: 2000/05/02
Message-ID: <390e27d9.2575935@news.tel.hr>
X-Deja-AN: 618103944
Content-Transfer-Encoding: 7bit
References: <390cccae.6779618@postoffice> <8ej96l02qr0@news2.newsguy.com> <j1jP4.34288$Xk2.126682@tor-nn1.netcom.ca>
Content-Type: text/plain; charset=US-ASCII
X-Complaints-To: abuse@tel.hr
X-Trace: as102.tel.hr 957235666 13893 195.29.241.224 (2 May 2000 02:47:46 GMT)
Organization: HiNet
Mime-Version: 1.0
Reply-To: asmolcic@foi.hr
NNTP-Posting-Date: 2 May 2000 02:47:46 GMT
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.thirdparty-tools,comp.lang.pascal.delphi.components.misc