Questions tagged [pascal]

Pascal is an imperative language from the Wirthian family created in 1969. It was widely used in engineering and teaching in the 1970s and 1980s. It lives on in compilers as Free Pascal and Delphi.

0
votes
0answers
19 views

Cannot declare a function with no parameters in InnoSetup [duplicate]

I'm trying to add code to an InnoSetup script and I'm stuck with issues on function declaration.It appears that I cannot declare a function with no entry parameters.For example this declaration get ...
-4
votes
0answers
65 views

'Types of actual and formal var parameters must be identical'…but they are already?

My subroutine below isn't liking this code, but I have only used integers so very confused as to why this error in the title is appearing when compiling?The line at the bottom starred is where the ...
-1
votes
2answers
104 views

Statement expected but Function found error in my function code

So below is the module of code I have created to verify a user input is between a range but this error keeps appearing below it ' statement expected but function found', any ideas anyone? Many thanks ...
0
votes
0answers
89 views

Caller or callee saves for this pascal program?

For my homework I got the following Pascal code:Program arraySum;Procedure sum(a: Array [1..3] Of Integer);Function sum2(low, high: Integer): Integer;Var mid: Integer;Begin...
0
votes
0answers
23 views

Unit 'MMSystem' not found

Using Windows 8.1 coding with PascalABC.NETTrying to use MMSystem to play sounds but it says:Unit 'MMSystem' not foundbefore "var" I entered "uses MMSystem;" did I do something wrong?
1
vote
1answer
42 views

Inno Setup Jumps to Second Page if Program is Installed [duplicate]

On first install everything runs smooth, but if I run the installer again it just jumps to the second page asking where i want to put the additional files, and then in the ready page only the ...
0
votes
1answer
46 views

Delphi TFDConnection Exception occured project build in release mode

In run this Code in Delphi. It works fine if I run this in "Debug mode", but when I am build this project in Release Mod I got a Access Violation Exception. I really dont know why...Code:if not ...
0
votes
1answer
61 views

Assigning file to another file in Pascal

Consider I have a file with information about employees(the employees repeat on that file). I have to create a new file of the same type(with the same information), but the only change I have to make ...
0
votes
1answer
52 views

Pascal - My program seemed to crashed but it's still… running

I'm writing a music player for my assessment. And currently I need to make it so that the tracks will play in order.Currently the bit that plays music of it looks like this:repeat//Other code ...
0
votes
1answer
42 views

Pascal Text Menu Music Player

I need help with creating my music player, I'm receiving the same error and can't seem to get past it. Thank you.I've attached my code below, as well as my errors.Errors:Free Pascal Compiler ...
0
votes
2answers
42 views

Pascal - How to convert custom data type into string

I have this as my custom data type:typeStatus=(Playing, Pausing, Stopping, Display, Selected);And I wanted to output some of these using DrawText from SwinGame library:arrayOfStatus[0] :=...
0
votes
2answers
70 views

Pascal Basic Read and Write File Handling

I'm currently having trouble with these errors and can't seem to get through them, I've attached below my errors as well as my code, thank you.Errors: Free Pascal Compiler version 2.6.4 [2014/02/...
0
votes
0answers
37 views

Pascal - Returning error message if function/procedure fails to execute

In SQL I learned to check for errors in every query that my script executes.$query="SELECT * FROM something";$result=msqli_query($conn, $query);if(!$result){echo "There is something wrong ...
-3
votes
1answer
120 views

Implementing Sieve of Eratosthenes in Delphi 5

I need to programm the Sieve of Eratosthenes in Delphi 5 as a school homework project. This is what i currently have:There is one problem:At the end of the last for-"loop" it says"if zahl[i] then ...
4
votes
0answers
40 views

FreePascal / Lazarus and implementing nsurlconnectiondatadelegate

I am trying to implement nsurlconnectiondatadelegate as I need to support async mode - in synchronous mode redirects are followed automatically which I do not want. For reference I have the code ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,