Article View: borland.public.cppbuilder.database.multi-tier
Article #235Re: ClientDataset
From: Sydney Delieu
Date: Thu, 14 Oct 2004 15:33
Date: Thu, 14 Oct 2004 15:33
19 lines
1730 bytes
1730 bytes
Deepak Mishra wrote: > Can I use a ClientDataSet component placed in DataModule in any other form of my client application. > If yes how? > > Regards, > > Deepak Mishra > Yes you can. There are several ways to do this. One example: 1. TDataModule is called DataModule1. 2. TClientDataSet on DataModule1 is called ClientDataSet1. 3. The form you wish to access ClientDataSet1 from is called SomeForm. 4. The TDataSource you place on SomeForm is called DataSource1. At design time, you could set the DataSet property of DataSource1 to DataModule1->ClientDataSet1. If you wanted to achieve this at run-time (in code), you would have to include the DataModule's header in the form you wish to access the DataModule's components from.
Technical Details
Message-ID:
<416e9c64$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<416e8767$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,ebd0ecb4d0f145de,start X-Google-Attributes: gidfcd2b,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 14 Oct 2004 16:33:56 +0100 From: Sydney Delieu <sydbee@supanet.com> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Re: ClientDataset References: <416e8767$1@newsgroups.borland.com> In-Reply-To: <416e8767$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.137.14.60 Message-ID: <416e9c64$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097768036 81.137.14.60 (14 Oct 2004 08:33:56 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail