🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple instances of data module

#6135
From: Mark Cashman (TeamB)
Date: Tue, 07 Nov 2000 21:18
29 lines
1554 bytes
Hi, Rodney!

You can create multiple instances of data modules private to a form or
data module or class, but you must, then, not use the global variable
provided by the data module.

#include <finishdm.h>

class MyForm: public TForm
{
    ...
    TFinishDM *data;


...

    __fastcall  MyForm::MyForm(void)
    {
        data = new TfinishDM(Application);
    }

Does this help?

------
Mark Cashman, TeamB C++ Builder
http://www.temporaldoorway.com/programming/index.htm
C++ Builder, JBuilder programming information
Home of The C++ Builder Programmer's Webring - Join us!
------
Technical Details
Message-ID: <3A0871A0.45C665F4@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.101.151.97
References: <3A064F8D.731448BE@haywood.org> <3A07A530.F12A8807@haywood.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a42aa6a7705c5eba,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2000-11-07 13:22:06 PST
Message-ID: <3A0871A0.45C665F4@temporaldoorway.com>
Date: Tue, 07 Nov 2000 16:18:24 -0500
From: "Mark Cashman (TeamB)" <mcashman@temporaldoorway.com>
Organization: VTechnologies
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Multiple instances of data module
References: <3A064F8D.731448BE@haywood.org> <3A07A530.F12A8807@haywood.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.101.151.97
X-Trace: 7 Nov 2000 13:09:51 -0800, 209.101.151.97
Lines: 31
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!209.101.151.97