Skip to main content
gamedev.net
🔒 Locked

Pascal help!!

Started by Smeagol Jan 6, 2002 at 2:21 PM 6 replies 550+ views
Original Post
Smeagol
Smeagol
Hey, can anyone tell me the code to close a program in pascal? cheers -steve Haha good old cockney wit!

What was the secret, they wanted to know; in a thousand different ways they wanted to know The Secret. And not one of them was prepared, truly prepared, to believe that it had not so much to do with chemicals and zippy mental tricks as with that most unprofound and sometimes heartrending process of removing, molecule by molecule, the very tough rubber that comprised the bottom of his training shoes.
Bezzant
Bezzant
isnt is just end. ?
Beer Hunter
Beer Hunter
I think he means: what''s the pascal equivalent of exit()?

I don''t remember this one, though...
UnshavenBastard
UnshavenBastard
hope remember it correctly: exit(0);

cheers - steve here, too :-)

Cyberdrek
Cyberdrek
quote:
Original post by Smeagol_Again
Hey,
can anyone tell me the code to close a program in pascal?

cheers
-steve


Haha good old cockney wit!


Actually, try this:

close;



"And that''s the bottom line cause I said so!"

Cyberdrek

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer
/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[Cyberdrek | ]
nickm
nickm
I don''t know how you''d do this in delphi, but in pascal it is halt, like alimonster said.

  
program test;
begin
halt;
writeLn(''This won''''t be printed'');
end.

MarkyD
MarkyD
quote:
Original post by nickm
I don''t know how you''d do this in delphi



Select the main form and call Close on it. However, Halt will work aswell.

~ There''s no substitute for failure ~

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.