Questions tagged [lazarus]

Lazarus is an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

Lazarus is a an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

See http://lazarus.freepascal.org

1306 questions
-3
votes
2 answers

Lazarus FileSize error

I get an error: unit1.pas(91,31) Error: Incompatible type for arg no. 1: Got "File Of Byte", expected "AnsiString" My code: var f : file of byte; ... AssignFile(f, FileName); Reset(f); try TotalBytes := FileSize(f); // line 93 finally …
Greg
  • 11
  • 3
-3
votes
2 answers

Lazarus link failed on Linux Mint 18.3 Cinnamon

I am new to Linux Mint, Lazarus and fpc. I installed Linux Mint 18.3 Cinnamon and Lazarus v1.8.0, found it needed fpc and fpc-src, then installed fpc 3.0.4 and fpc-src 3.0.4, launched Lazarus without problem, then tried to run a simplest application…
Bochen Lin
  • 413
  • 4
  • 12
-3
votes
1 answer

Compliererror for certain fields in DExif-Package

I installed the package DEXIF and am able to read some EXIF-Entries. But not computed values as described in the documentation. The following code shows what works. For the commented lines I get the Error: identifier idents no member "focalLenght"…
ratmalwer
  • 700
  • 5
  • 14
-3
votes
1 answer

How do use destruct and create correctly

I have a Form. When the user clicks the TESTBUTON an array is generated (here with a loop) and an array is filled. (that works). Now the user will be able to change some parameters an hit the button again. Than I want to clear / free / destroy the…
ratmalwer
  • 700
  • 5
  • 14
-3
votes
1 answer

Canvas.CopyRect doesn't work

Please, somebody help me !!! I need to draw something and save it as a bmp file. I do it like this: procedure TForm1.PaintBox1Paint(Sender: TObject); begin with PaintBox1, canvas do begin Pen.Style := psDash; pen.Width:=4; …
user2032083
  • 313
  • 2
  • 4
  • 14
-3
votes
2 answers

Anchoring TPanel so it stays on top of the form

How can I anchor a TPanel so it stays at the top of the form in Lazarus? When I do this in Delphi 7 it works fine. It looks like the TPanel becomes part of the canvas and when you scroll down the TPanel scrolls off the screen. The user needs to…
-3
votes
1 answer

Lazarus - No Form Window, Dialogue Grey'd Out

I've got a wee bit of experience with Pascal, as I've used it to create mods via TES5Edit for Skyrim, and I've hit a wee snag with modding Dark Souls, and I figured flexin' me Pascalerrific muscles would be a good exercise. But, uh, it's all…
FiftyTifty
  • 91
  • 1
  • 7
-3
votes
1 answer

How to make request to sql and fetch results using lazarus

I have problem making sql request such as SELECT * FROM 'users' WHERE 1 using lazarus SqlQuery,SqlTransaction and MySql55Connection.But when I'm trying to open SqlQuery( SqlQuery1.Open; ) it causes exception: Sql statement not set.
user6012107
  • 65
  • 1
  • 9
-3
votes
1 answer

How to add ASCI Char in TStringGrid Cells

I'm not expert in Delphi and I'm trying to add "Extended ASCII String" broken into individual character and then add into the TSgringGrid.Cells[x,y]. Some of the characters are getting displayed but rest of the characters are not shown in these…
-3
votes
1 answer

FPC/Lazarus and Android development?

Hi, I've heard something about component to Lazarus to develop Android apps... I understand pascal very well and Im not sure if it will be easier to learn Java, or make applications in Pascal ... What do you think? It will be better to work with…
Kryštof Řeháček
  • 1,965
  • 1
  • 16
  • 28
-4
votes
1 answer

Can't use break statement. Illegal expression error

In my for loop I used break statement to break loop after some match. But when I compile my code I got error for break: Error: Illegal expression Could you help me? I should add some unit? for i:=0 to length(carsList)-1 do begin …
Mlody87
  • 425
  • 1
  • 7
  • 19
-4
votes
1 answer

Regex super slow in Lazarus. What should I do?

I am trying to run a RE in my Lazarus application on a SynEdit component but it is way too slow, even freezing my application. My file is quite large (1.5gb) but when I RE it using Sublime Text, it process everything real quick (matter of…
Jay
  • 66
  • 5
-4
votes
1 answer

Lazarus display numbers from memo to for exampel lisbox

I have these data: CMD210 STA_ 99.0 uS Temp 22.1 C CMD210 STAB 99.9 uS Temp 22 C CMD210 STAB 0.1 mS Temp 22.1 C CMD210 STA_ 99.5 uS Temp 22.1 C CMD210 STAB 99.4 uS Temp 22 C CMD210 ST__ 99.0 uS Temp 22.2 C CMD210 STAB 0.1 mS Temp 22 C CMD210 STAB…
-5
votes
1 answer

Notepad clone , Save and Save As options

I'm making a Notepad clone. I've implemented 70% of the options, but there are options that I don't know how to do, and I can't figure out how. Like Save and Save As options. When I open some text that has already been saved, and then insert…
Vzas Tack
  • 33
  • 5
-5
votes
2 answers

Port this C code to Delphi/Lazarus

I have this code in C that I want to port to Delphi, but i can't make it work. .CPP CODE #include #include #include #include "GLibExp.h" #pragma comment(lib, "GLib.lib") void MyCFunc(LPCTSTR GStr) { GFile GVar =…
1 2 3
87
88