Not sure if I can post the code since I signed a NDA.
[...]
BTW, I'm using BP (Boreland-Pascal) ver 7.
Please, it's
Borland Pascal.
Do you have the manuals for this? If not then you will find copies at
http://bitsavers.org/pdf/borland/turbo_pascal/ which I suggest will be more useful than referring to FPC, since after 20 years the variants of Pascal have diverged (FPC has things that were largely unthought of in the early part of the millennium, and has differences of both design and implementation brought about by the fact that cross-platform operation is much more important today than it was back then).
Whether you already have the manual or have to download the PDFs,
read the parts that deal with overall program structure, and if necessary look for some books on Pascal. People here are, I'm sure, happy to help but there's limits to what it's fair to ask particularly if you're being paid to do the work but want free advice relating to something which is, basically, off-topic.
You also need to consider that whatever OS you're currently using is likely to handle some things differently from the version of DOS (or Windows-386, Desqview etc.) that was being used when BP7 was mainstream, and on occasion that can cause problems (e.g. when modern anti-malware precautions become intrusive).
If you don't have the manuals, don't have software experience, and suspect that the files etc. are incomplete or inconsistent, then tell whoever's given you the job that you can't do it within his constraints.
MarkMLl