background preloader

Section 3

Facebook Twitter

Free Pascal - Online documentation. Remark:you must have javascript and style sheets enabled in order to view the html documentation correctly.

Free Pascal - Online documentation

The following documents are online available: You can also download the documentation in some alternative formats. See the Download page. The Free pascal 2.2 manuals have been translated to German by C&L, and can be purchased from the C&L website. Updated! User contributed documentation The following user contributed documents are available: More information Additional information, user contributed documentation and links can be found on the More Information page.

Lazarus Development. On the road with Lazarus/Freepascal. Executing External Programs. SysUtils.ExecuteProcess The simplest way if you don't need pipes or any form of control is to simply use SysUtils . ExecuteProcess ( UTF8ToSys ( '/full/path/to/binary' ) , '' , [ ] ) ; For simplicity's sake, the calling process runs synchronously: it 'hangs' until the external program has finished. For more complex forms, see the next section about TProcess. ExecuteProcess reference Windows CreateProcess, ShellExecute and WinExec If you always use and/or in Delphi, then you can begin to use TProcess as an alternative in FPC/Lazarus (this is valid too if you are running Lazarus in Linux, because TProcess is cross-platform). While FPC/Lazarus has support for , and/or , this support is only in Win32/64. WinExec is a 16-bit call that has been deprecated for years in the Windows API. Unix fpsystem, fpexecve and shell These functions are platform dependent.

How To Write Lazarus Component. Introduction This is a basic guide on how to build components. It was tested on Windows 7 running Lazarus 0.9.30. Step 1: Create The Package. Adventures of a Newbie. English (en) | Français (fr) | 日本語 (ja) | ‪中文(中国大陆)‬ (zh_CN) Warning: As indicated by the writer, this article was written by a newbie who may not have known the best way of doing things.

Adventures of a Newbie

The code and solutions presented may very well not be optimal. Please be aware of this and verify solutions with other documentation; please add links to articles with improved code/solutions. However, having the thought processes of a new user described could be quite valuable for others in the same situation. Living Lazarus. Porting to Lazarus. Parallel Pascal Worlds. Pascal - SwinBrain. From SwinBrain Pascal is the name of a general purpose procedural programming language.

Pascal - SwinBrain

Hello World in Pascal The classic programming example, used as a first trial. Say hello to programming with Pascal. program HelloWorld; begin WriteLn('Hello World'); end. This can be simplified to just: begin WriteLn('Hello World'); end. Variable declaration: This shows variable declaration and use in Pascal. program SillyName; { This program displays different messages based upon a name that is entered by the user. }var name : String; //The name of the user running the programbegin Write('Please enter your name: '); ReadLn(name); if name = 'Fred' then begin WriteLn('What a nice name'); end else begin WriteLn('Well that is a silly name'); end; end.

Pascal Development Tools Various Pascal compilers are available for different systems. See our wiki page on Free Pascal Compiler Visit the official FPC web site at You can also download the Turbo Delphi IDE from Borland Pascal Articles.