Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Compiling and r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 5973 of 6154
Post > Topic >>

Compiling and running console-mode prohrams from the IDE?

by Dr J R Stockton <jrs@[EMAIL PROTECTED] > Feb 1, 2008 at 08:33 PM

I have reinstalled Delphi 3 from CD (the machine that used to have it
has died).

I can edit a program such as the following with another editor and
compile it with DCC32 and run it, working from an existing "Command
Prompt" window, with/without {$APPTYPE CONSOLE} (typed here from memory;
but in use copied from the Help).

But exactly how do I compile it, and preferably run it, using the IDE?
What have I missed or forgotten?

  program OB ;
  type TR = record Y, M, D : integer end ;
  var R : TR ;
  function F : TR ;
    begin with Result do begin Y := 2008 ; M := 1 ; D := 31 end ; end ;
  BEGIN ;
  R := F ;
  with R do Writeln(Y:6, M:3, D:3) ;
  with F() do Writeln(Y:6, M:3, D:3) ;
  END.

I just want a simple PAS file; no bother with multiple files, DPR, RES,
etc.

-- 
 (c) John Stockton, nr London UK. ?@[EMAIL PROTECTED]
 Delphi 3 Turnpike
6.05
 <URL:http://www.merlyn.demon.co.uk/>
TP/BP/Delphi/&c., FAQqy topics &
links;
 <URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm>
clpdmFAQ;
 <URL:http://www.borland.com/newsgroups/guide.html>
news:borland.*
Guidelines
 




 6 Posts in Topic:
Compiling and running console-mode prohrams from the IDE?
Dr J R Stockton <jrs@[  2008-02-01 20:33:15 
Re: Compiling and running console-mode prohrams from the IDE?
Marco van de Voort <ma  2008-02-02 16:57:37 
Re: Compiling and running console-mode prohrams from the IDE?
Andreas Koch <nospam@[  2008-02-02 17:57:46 
Re: Compiling and running console-mode prohrams from the IDE?
Dr J R Stockton <jrs@[  2008-02-03 13:20:43 
Re: Compiling and running console-mode prohrams from the IDE?
Rob Kennedy <me3@[EMAI  2008-02-03 13:57:59 
Re: Compiling and running console-mode programs from the IDE?
Dr J R Stockton <JR.St  2008-02-03 12:17:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:09:52 CDT 2008.