Hey fellas,
I finally got Lazarus to run properly without any errors; however, I am trying to go through Marco Cantù book on Object Pascal and have run into a problem.
When trying the first program in the book, I cannot get the console to appear and display "Hello World."
Below is the program I am running:
program HelloConsole;
{$APPTYPE CONSOLE}
var
strMessage: string;
begin
strMessage := 'Hello, World';
writeln (strMessage);
readln;
end.
I omitted "{$APPTYPE CONSOLE}" due to a message that stated that it was not supported by my target OS and now it says the program ran successfully. But, I still cannot get a console window to display.
Any ideas on how to solve this issue?
[Edited to add code tags - please read
How to use the Forums.]