Procedure DateScan Turbo Pascal 7
Posted on 2000-03-08
To the guys at 'EE'
I'm getting a moderate amount of success with the last procedure in my project, but it is proving tricky. In the program there is a procedure that when the user initiates the program for the the first time the procedure 'DateScan' reads '0' The date is taken from dos which is then compared to the transaction dates in the direct debit file, thereafter, this date is the start date each time the program is run. The transactions in the direct debit file are active on the same date each month. So the procedure must do the following-->:
1)READ DATE FROM DOS-
2) COMPARE THIS DATE TO DATES IN THE DD FILE-
3)COPY THE TRANSACTIONS INTO THE EXPENDITURE FILE AT BOOT UP READY TO BE USED IN THE CALCULATIONS RUNNING IN THE PROGRAM-
4) STORE THE DATE SO WHEN THE PROGRAM IS RUN NEXT TIME THE NEW TRANSACTIONS ARE COPIED FROM THAT DATE.
I have had a modicum of success but I have to try and stop transfers of the same data each time the prog is run. Also, I need to introduce a method of determining the 'day' 'month' 'year' in the code.
If the prog is run between months ie: at the end of a month and beginning of the next, the program needs to be able to catch up on the previous month before starting the transfers on the next to keep an accurate balance going. This is the point I have got to.
There is quite a bit of code involved so I am willing to email it together with the declarations to anyone interested in helping me to solve the problem.
Thanks in anticipation....chrisbee.