Lazarus
Free Pascal => Beginners => Topic started by: makarios on March 14, 2018, 04:27:45 am
-
I have inherited the code of a program written in Lazarus, and need to do some changes to it, but my lazarus installation needs the following Components:
TRxDBGrid,
TFrPrintGrid,
TrfUserDataset,
TfrDBDataSet.
Where would I be able to download them? and hoe do I go about installing them to my Lazarus installation?
I am a real beginner here.
-
Hello makarios,
welcome to the forum!
I don't know these component. But you can have a look at Online Package Manager http://wiki.freepascal.org/Online_Package_Manager (http://wiki.freepascal.org/Online_Package_Manager), which helps you install other packages. See wiki how to install it.
-
When I opened the lazarus project this is the error message I got and listing the Project inspector, I got the list of packages required in yellow as pet attached screenshot...
I went and right click remove, and they are no longer listed but the above is the list still required....
I do hope they are not custom ones coded as the original developer is unable to continue the project for now, but to assist the client, I need to get on top of this :D
-
Pascal, the link poste to the online package manager suggests that I should have a online package manager in my menu structure...see screenshot below mine does not.....
Ho do I get it there?
Thanx for the help by the way!!!
-
:-[ oops I did not read the wiki from the top....got the online package manager in my menu now....LOL
-
TRxDBGrid,
TFrPrintGrid,
TrfUserDataset,
TfrDBDataSet.
Where would I be able to download them? and hoe do I go about installing them to my Lazarus installation?
TRxDBGrid belongs to package RX.
I found TfrUserDataset in unit LR_DSet which belongs to LazReport (which comes with Lazarus, but is not installed by default). The other TFr* classes probably belong to LazReport as well. Since LazReport has been split into several packages you may have to install also other packages named like "lr*"
In order to install new components - and this is also how to install OnlinePackageManager - , go to "Package" > "Install/unstall packages". Find the requested package (lazreport, OnlinePackageManager) in the right list, click "Instal selection", then "Save and Rebuild IDE". Then Lazarus will recompile itself (which takes some time). At the end Lazarus restarts, and you'll find the new components in the palette, except for the OnlinePackageManager, which is in "Package" > "OnlinePackageManager".
This procedure works only for packages which are known to the IDE. The easiest way to install other packages is via the OnlinlinePackagemanager. Start it, find the package in the list (here: "Rx"), check it, click "Install" - wait. When Lazarus restarts you are ready to go.
It should not happen, but sometimes packages are faulty and crash the new Lazarus. Open the Lazarus folder, delete Lazarus.exe and rename Lazarus.old.exe back to Lazarus.exe in order to restore the last working version.
-
Thank You!