Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

I disable I/O checking inside a procedure: procedure RewriteText( FileName: string; var TextFile: text; var ErrMsg: string ); begin {$I-} assign(TextFile, FileName); rewrite(...
Bogdan Doroschenko's user avatar
1 vote
0 answers
62 views

I want to see comments as tooltips in VS Code with the OmniPascal extension. Right now, comments are not appearing in tooltips despite trying different Pascal commenting styles. Maybe i just dont know ...
fivid's user avatar
  • 21
2 votes
2 answers
213 views

Assembly is always faster than high-level languages. For example, I tested an empty loop in Delphi repeating 1 billion times, and same loop but written in assembly. The Delphi loop took 6 billion (x64 ...
JOrE's user avatar
  • 156
-1 votes
1 answer
156 views

I'm doing a proof of concept that involves porting some Pascal code over to C#. The code involves financial calculations, so most of the fields are currency based (though not all). All of the numeric ...
user7142812's user avatar
3 votes
1 answer
113 views

Why does rounding not work if I try to compile following code using the FreePascal Compiler? program RangeCheckError; var result: integer; begin result := round(1.6514384080961258e+21); ...
Bogdan Doroschenko's user avatar
3 votes
0 answers
270 views

I am developing an application in Delphi that needs to interact with SAP GUI via Scripting to automate some material control operations. However, I am facing difficulties in establishing the correct ...
Mieli Jr.'s user avatar
1 vote
0 answers
68 views

I try WinRT in Delphi. The following code encounter access violation when invoke get_Thumbprint: program Sample; uses System.SysUtils, System.Classes, System.Win.WinRT, System.NetEncoding, ...
Chau Chee Yang's user avatar
0 votes
2 answers
76 views

I have this function which does: MyPalette : PaletteType; MyPalette.Size:=16; // sets some colors SetAllPalette(MyPalette); Reading the Turbo Pascal 5.0 manual it says: Palette is an untyped ...
M Rajoy's user avatar
  • 4,144
1 vote
1 answer
141 views

Hello everyone once again, I need to write a code in Pascal which converts a decimal number into a binary number, and saves this into an array, and then writes it from MSD to LSD. I've got most of the ...
Slan's user avatar
  • 31
0 votes
0 answers
439 views

In a PC running Windows, how could I read BIOS serial number and CPU serial number? I use pascal, Delphi7. The reason for this is that I want to identify a PC using something unique in order to ...
Dimitris's user avatar
0 votes
1 answer
216 views

I have this function to solve 3x4 matrix by Gaussian elimination. But i got this error when running the program. [Error] Unit1.pas(79): Identifier expected but 'ARRAY' found [Error] Unit1.pas(79): ...
Kuuhaku's user avatar
  • 25
0 votes
1 answer
188 views

I wrote this code where you can add or remove numbers from a list, and then display the list. The problem is: it displays the numbers in reverse order, except for the first added number. program ...
Adriana's user avatar
1 vote
2 answers
277 views

According to this table the UTF8 code for the smiley emoji is: F0 9F 98 81. I attempt to write this output to the console, to no avail: Program emojii; {$apptype CONSOLE} Begin WriteLn(#$F0#$9F#$...
BugHunterUK's user avatar
  • 9,026
1 vote
2 answers
160 views

I'm trying to figure out how to write a cascade recursive function to find a max element in an integer array. I've tried to write some code but i think my function is more linear than cascade. Here is ...
burnn1k's user avatar
  • 45
-4 votes
1 answer
172 views

In this project, I'm opening MP3 files using the component 3delite.hu =- ID3v2 Library, and adding the MP3 files metadata to a ListView. When you click on an item, its information appears in the Edit ...
Wayne Barron's user avatar
1 vote
0 answers
83 views

I just installed Free Pascal v3.2.2 (within dosbox-x). Unfortunately debugging from the (go32v2) IDE doesn't work. Whatever I do, it says "no debugger support available". Update: It seems ...
Tobias's user avatar
  • 79
2 votes
1 answer
260 views

So, say we have a class like this: TFieldsReadyEvent = procedure(Sender: TObject; Code, AuthorizatedID: string) of object; TCatcherServer = class(TServer) private FOnFieldsReady: ...
Arthur Araujo's user avatar
-2 votes
1 answer
155 views

Following the examples given in the Pascal-driven Castle Game Engine for drawing a mesh, I tried to draw a raycast vector visually using this particular piece of code for reference: procedure ...
Joshua P Fingerle's user avatar
0 votes
1 answer
185 views

I have a function that reads some values from Siemens PLC using libnodave.dll and nodave unit but I cannot figure out the error output. I am on purpose forcing to go in error and what I get from ...
MattiTheMaestro's user avatar
0 votes
0 answers
100 views

With the following code in Lazarus, I can check out how many MIDI devices there are available on my PC and put the ID numbers to the combo box: var MyMIDIDevice : integer; begin cmbMIDIdevs....
FDelph's user avatar
  • 33
0 votes
0 answers
276 views

I have used Delphi 12 for developing Android application and I'm trying to Service which needs to runs in the background to receive the frequent messages from Server using TCP sockets to displays the ...
Velson Infotech's user avatar
0 votes
1 answer
273 views

I'm getting an error I don't understand. I am trying to just assign a value to an element of an array in pascal. function TestingThing() : Integer; type IntegerArray = array[0..$effffff] of Integer;...
Anthony's user avatar
  • 21
2 votes
1 answer
121 views

this is the code and I get these two errors 1: 8,14 illegal expression and 2: 8,1 ''warning: variable k does not seem to be initialized program komunaluri_1; var den, g, w, das, k : integer; begin ...
Nino Kilasonia's user avatar
0 votes
1 answer
131 views

I'm working on a school assignment. In line 87 and down, the gotoxy didn't work but the code does. Here's the cropped part of the code. gotoxy(32,24); write(' ...
RD 1380's user avatar
  • 23
1 vote
2 answers
525 views

I have a master Detail report. I want the report to print the master information (With its details) based on its quantity field. So if the Quanitty field of master record is 3 it should show up 3 ...
codeGood's user avatar
  • 322

1
2 3 4 5
52