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


|