Lazarus, the complete guide book

  I’ve purchased Lazarus the complete guide book, and I’ve received it yesterday. It is a very good book, full of information, and it is suitable for new and experienced programmers as well. It can be used as a reference for Free Pascal compiler and Lazarus IDE. I encourage every programmer who want to be…

How to upload files into database using Free Pascal/Lazarus

To upload files into database, such as photos or any other files type, you need first to create a Blob field in a proper table structure in your favourite database engine. For this example we are using FireBird database table: Create a new Lazarus application and add the following components: TButton, TIBConnection, TSQLTransaction, TSQLQuery, and TOpenDialog:…

How to execute commands using Free Pascal/Lazarus

You can execute OS commands in Free Pascal / Lazarus by using TProcess component that exists in System component palatte. TProcess also can open external applications from your Lazarus project. Example: 1. Create new application, put Edit box, a button, TProcess and a Memo in main form: 2. Change UsePiples property to True in TProcess.Options.…

Object Oriented Programming in Free Pascal

Free Pascal supports Object Oriened programming paradigm as well as structured programming, so that it is a multi paradigm language. In this example we will define TCar as a class (type). This class contains attributes (variables) and methods (procedures and functions). Before using this class, we need to declare and inistantiate objects (variables of class).…