Solved

Move Tdatasource

Posted on 2011-09-27
2
187 Views
Last Modified: 2012-05-12
I have a quite complicated form with some hundreds of db aware components. Now i need to move all the datasources to another form. When I do this, all the DB aware component forgets what datasource they were linked to. Is there some other way to do this operation without loosing this information? I'm using rad-studio 2007
0
Comment
Question by:Sunsales
2 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 36714960
Well, you should open all the units containing the db components using notepad and change/add to the uses clause the new unit (the one containing the datasources). Then, and only after have done this, you can open the forms in delphi.
0
 
LVL 2

Accepted Solution

by:
BlueVD earned 500 total points
ID: 36921113
Hello,
Do the following:
copy all the controls to the new form; save and close all files;
in the project folder you should have 2 DFM files named according to your units containing the form;
Open both of them and copy the object declarations from the original form DFM file to the second form DFM file.
The DFM file contains all the definitions to the controls on a form.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 80
oracle global variables 4 68
Convert a string into a TDateTime 5 61
Delphi problems to abort a printjob 9 20
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question