Turbo Pascal is an old software development system including a compiler and an integrated development environment for the Pascal programming language running on CP/M, CP/M-86, and DOS.
Questions tagged [turbo-pascal]
115 questions
3
votes
3 answers
How to resolve "Error 200: Division by zero"?
I've FreeDos OS installed on VirtualBox on a windows xp, dual core, host machine. I installed FreeDos because I wanted to run a Pascal code using Turbo Pascal. When I run the code, it throws error 'Error 200: Division by zero.'. How can I solve…

Eliyah
- 330
- 4
- 14
3
votes
2 answers
Keyboard shortcuts in Turbo Pascal 3.0?
I have the free download version of Turbo Pascal 3.02 (http://edn.embarcadero.com/article/20792) and it works great to compile my old code in Turbo Pascal 2.0.
Trying to figure out how to use the build-in editor. Anyone remember any keyboard…

pelle
- 160
- 1
- 10
3
votes
1 answer
How to make dynamic array constant?
There is any way of making x array constant after the data is read from user? There is any way of making variable not modifiable after it's value is read from user (eg. y)?
program hmm;
uses crt;
var
i, y: word;
x: array of…

Isinlor
- 1,111
- 1
- 13
- 22
3
votes
3 answers
In-memory layout of array in Turbo Pascal
We have an old application in Turbo Pascal which can save its internal state into a file, and we need to be able to read/write this file in a C# application.
The old application generates the file by dumping various in-memory data structures. In one…

prprcupofcoffee
- 2,950
- 16
- 20
2
votes
3 answers
Turbo Pascal for Windows: Copy output to clipboard?
I'm completing a program in Turbo Pascal 7 for Windows as part of a programming class school project, essentially we've been given a brief and told to go off by ourselves and implement and code the program.
The brief states to create a program…

marked-down
- 9,958
- 22
- 87
- 150
2
votes
1 answer
Turbo Pascal 3.01A turboh error: "co processor card not responding"
I'm using a very old version of Turbo Pascal and it uses the turboh.com to compile.
What is special about this *.com (as far as I can tell) is that it will compile on a very old computer we have but we are unable to emulate it correctly.
We have…

Another User25
- 21
- 1
2
votes
2 answers
Compiled COM files with empty project is over 10 KiB large in Turbo Pascal
I have a problem with the binary's size of old Pascal versions.
We need very small simple programs. We would like to use Turbo Pascal 2 in MS-DOS (higher is the same problem) to compile COM files. But the size is always 10 KiB and larger, even for…

Born34
- 49
- 3
2
votes
1 answer
Does CASE OF effectively mean CASE EQUALS?
Does
CASE OF
1: ;
2: ;
3..5: ;
END;
Always effectively mean:
(in) CASE EQUALS
1: ;
2: ;
3..5: ;
^…

Gaai
- 98
- 1
- 8
2
votes
3 answers
How can I find the number of words in a given string?
I'm trying to find the number of words in a given string in Pascal?
This is my starter coede:
Program P1;
var s:string;
i,k:integer;
begin
write('Enter a string: '); readln(s);
k:=0;
for i:=1 to length(s) do
begin
…

Iulian
- 55
- 4
2
votes
2 answers
if statement and the maximal value in Pascal
Looking at this code:
I thought that the program won't give the right maximal value if z>x and y>x, but, to my surprise, it did give the correct value. Why is that? Did the program compare Y and Z and gave the biggest value without me ordering it…

Ashraf Benmebarek
- 141
- 6
2
votes
0 answers
TimeOut property doesn't work on TRESTClient
I am working with Delphi 10 Seattle.
Following samples we developed a REST Client that communicated with a remote server to consume Rest API.
The REST Client works end until we tried to set a custom timeout for Request object.
The following snippet…

Sceik
- 275
- 1
- 3
- 13
2
votes
2 answers
Ancient history: Was any version of Turbo Pascal able to compile to Protected Mode on 286 or higher?
I remember 1990's Turbo Pascal 6.0 which had several compiler switches for 80286-specific features, all with a note that they work only in Real Mode but not in Protected Mode. Did Turbo Pascal ever have a compiler that could compile to 286 Protected…

Andrew J. Brehm
- 4,448
- 8
- 45
- 70
2
votes
1 answer
Windows 98 SE - Calling OutputDebugString from a 16-bit console app
I would like to be able to call OutputDebugString from a Turbo Pascal 7.0 console mode program. The host PC is running Windows98, which as far as I can tell supports OutputDebugString. I can't find any header files that declare the entry point and…

rossmcm
- 5,493
- 10
- 55
- 118
2
votes
2 answers
Pascal (Free or Turbo) Read
I'm trying to understand a somewhat magical behavior seen in Free Pascal, compiled in Turbo mode (specifically fpc -Mtp -vw) under Linux. The code is from Jack Crenshaw's "Let's Build a Compiler", Part IV, specifically the last version with the…

Joe Abbate
- 1,692
- 1
- 13
- 19
2
votes
1 answer
Check if array element empty in Pascal
I'm very sorry to bother you on this outdated language, but is there any way to check if the particular array element is empty in pascal?
It's an integer array, so checking element against empty string causes type mismatch (I love this…

Arnthor
- 2,563
- 6
- 34
- 54