Fields losing Datasource property

Asked

Viewed 190 times

-1

I have a small project of some records here, using the Delphi XE8. sometimes when I change something in the project, all fields (Edit s and dbGrids) lose the "Datasource" property and have to link again before compiling.

I searched the internet and there are many people who have been suffering from this since at least version 5 of Delphi (not XE5, is the same 5).

Has anyone here ever had this problem? This is the first time I’ve thought.

  • I’ve been working with Delphi since 5, I’ve always followed the evolution of the IDE, I’ve never experienced this difficulty, test, perform and copy Datasource, Dataset and a DBGRID or DBEDIT (linked) to another form to see if the same thing happens!

  • It may be some kind of security mechanism. Let’s say it unbundles to force the developer to check this particular configuration. As it already happens today when you change one CommandText, and his type changes to ftUnknow. I’ll do a search to see if I can find anything.

1 answer

2

Datasource is centered on Forms or a Datamodule?

As a rule, every time you open your project, first open the Form or the Datamodule where the access components are (Table, Query, Clientdataset, etc), because if you do not follow this rule you lose the link even.

[sds]

Eduardo Belo - E-mail: [email protected]

  • They are in the Datamodule. I always leave the connection and data access components there. I put the DM to open first, before the main form. But thanks for the tips, I’ll watch them.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.