alogrep 0 Posted January 16, 2021 Hi I get the error in 10.4 (I was not getting in 10.2). I put "Vcl.dbgrids" in Unit scope name, but it did not solve the problem. Anybody knows what else am I missing? Thanks Share this post Link to post
David Heffernan 2345 Posted January 16, 2021 What is the error? Can you give a minimal reproduction? Share this post Link to post
Guest Posted January 16, 2021 (edited) "Vcl.dbGrids" is a unit name "Vcl.dbGrids.pas", then, using "unit scope name = VCL", it should presume any .pas file where "Vcl" is the initial part of the name... you see me? using "Unit Alias" in project options can help too, in special case! You dont put "Vcl.dbGrid" in "unit scope", just "Vcl" Verify if "Vcl.DBGrids.dcu" exist in your Embarcadero folders,for example in "Embarcadero root\ ... \lib\win32\debug" or "release" and your IDE can found verify if when you put a DBGrid component some wrong happen! then, can be a "Path" problem... RAD 10.4 had this problem in Delphi / CBuilder config! - Tools, Options, Language, Delphi, Library verify if BPL (DclVclDBxxx.bpl) is loaded correctly! hug Edited January 16, 2021 by Guest Share this post Link to post
aehimself 396 Posted January 16, 2021 I am using 10.4 and I used the built-in; and also made my own DB grid inherited from the built-in one. All works like a charm. Does your Delphi say it doesn't know what TDBGrid is or cannot find the Vcl.DBGrids unit? Anyway, doublecheck the library locations / just start with a fresh registry (bds -r temp) to see if the issue is with the installation or your settings. Share this post Link to post
alogrep 0 Posted January 16, 2021 David Hefferman, The error is only one line (above it only hints and a warning) [dcc32 Fatal Error] .. F2063 Could not compile used unit "dbgrids.pas" Share this post Link to post
Attila Kovacs 629 Posted January 16, 2021 shift-f9 if it doesn't help, you have an older/different dbgrids.dcu in the search path fix the search path or remove the file and build the project (shift-f9) Share this post Link to post
alogrep 0 Posted January 16, 2021 If I start a fresh vcl app, and add a dbgrid to the unit, it compiles fine. I suppose then it cannot besomething in the Tools-Language-Delphi->Library which is common to all projects. What else could it bewrong in this specific project? Share this post Link to post
David Heffernan 2345 Posted January 16, 2021 You shouldn't be compiling that unit. Should find the dcu shipped with the product. Share this post Link to post
alogrep 0 Posted January 16, 2021 David, yes. But I do have "use compiled dcu's" checked. I have no idea why the the bds is trying to compile that unit Share this post Link to post
Attila Kovacs 629 Posted January 16, 2021 (edited) It's a bogus message. Did you check the project search path? Also the root dir of the project. Edited January 16, 2021 by Attila Kovacs Share this post Link to post
David Heffernan 2345 Posted January 16, 2021 What happens when you create a new project? Is it a problem with a new project? Share this post Link to post
Hans J. Ellingsgaard 21 Posted January 17, 2021 Check in your project folders to see if there is a dbgrid.pas or dbgrid.dcu file and remove it, if it's there. Share this post Link to post
Guest Posted January 17, 2021 (edited) just delete <<project_name>>.DPROJ and the IDE re-create your default definitions Edited January 17, 2021 by Guest Share this post Link to post
alogrep 0 Posted January 17, 2021 (edited) emailx45. ref delete .dproj That seems to work. I did it with a package and it fixed it. Thanks. But now I am stuck with the absence of BDE for 10.4. Edited January 17, 2021 by alogrep Missing context Share this post Link to post
Guest Posted January 17, 2021 (edited) Installer BDE for RAD 10.4 is the same than RAD 10.3 = difference is on file compilated (dcu bpl dcp) go in you account of products Embarcadero for download and see if it appears https://my.embarcadero.com/ or go to GetIt and search it! you can try on CentralCode by Embarcadero https://cc.embarcadero.com/results.aspx?keywords=bde it exist, because I have it Edited January 17, 2021 by Guest Share this post Link to post
Guest Posted January 17, 2021 (edited) good news: same that you dont have BDE installer, stay knowing that RAD 10.4 CAN access Paradox or others by ODBC driver! then, you dont really need have BDE installed in your machine! in fact, BDE installer just installs the binary files to administrate your file-datas, or be, itself is not necessary for access Paradox tables for example! like if when you install Firebird, Interbase (whatever) binarys the RAD Studio until have "dclbde.dcp" in your default installation! for access your old-datas-files like Paradox, for example: (NOT NEEDS BDE AT ALL) in DataExplorer window (right side of your screen), in FireDAC connection, select "ODBC Data Source" ---> it normally is "empty" right-click and create a "NEW CONNECTION", give a name now, the FireDAC Connection appears, use the "Wizard" to create a new "DSN" with the definitions about your database (or folder where the files is in choice create a new DSN choice the drivers referent to data-files, for example: Driver for Microsoft for Paradox (*.db) in save, choice save this file DSN in same folder than your project, for easy access .. ok until "conclude" all done, you came back to FireDAC Connection, then, just test the connection: click Test button it's done! now, you can use a FDTable or FDQuery to access your tables Happy end! No needs BDE itself for access old data-files, Paradox, DBase, Excell, etc.. NOTE: any component that use FDConnection, in this case, can be used! not needs be FDTable or FDQuery! hug Edited January 17, 2021 by Guest Share this post Link to post