Solved

Move Tdatasource

Posted on 2011-09-27
2
185 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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now