Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me by making a programm in delphi for dos

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I got the follow exersiece.
Create a programme where the user enters a date (on the form yyyymmdd). The programme should then calculate the remaining number of days that year.

Only I don't know how to fix this!

Please help me because i have other way a big problem.
 
Just curious... but why must the program be in DOS?
Delphi is a windows-based programming language, if u want to make it in DOS, you should use TurboPascal 7.0

btw: am i correct this is 4 school??.. why not ask ur teacher? (cause u used the word "exersiece":)) E-mail: Rob@matas.nl (till Jan 10, from then on it's Deathwish@winning.com)
 
I would use a TCalendar and Tdate to subtract.

Regards S. van Els
SAvanEls@cq-link.sr
 
About the DOS function in Delphi :
Go to "Project" and then click "View Source".
Now you have the Source of your program. Delete all the lines between
"Begin" and "End." and type "{$APPTYPE CONSOLE}" above begin (without the
"). This will generate a DOS-box and it will close it when the program ends.
That's it..

About the Date Calculation : Try and ask that at the Pascal section of
Tek-Tips, i can't think of it right now. :) sorry.
E-mail: Rob@matas.nl (till Jan 10, from then on it's Deathwish@winning.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top