So maybe it's in an external TP unit that you haven't included in a "uses" statement. Your program should have a uses near the start, a simple text screen based one would have something like
Dos, Crt and Overlay are TP7 units (they are part of turbo.tpl). The remainder must be from your additional units.
If you have the documentation or source code to build the tpu files, search in those. Otherwise you may be able to use the TP unit browser.
Start TP7 with TPX.EXE. Try compiling your program again, then from the menu Search ->Units. You should see a window Browse: Units. You can then click down through each one and where it is defined. Click again on any of these should show you the file/line where it is used.
Strange I have Search Units greyed out. I've looked through the menus to see if there is some way to activate it but no. Greyed out and I can't click it. I've got my code open and have tried to compile it.
Comments
oldfore := gettextcolor;
procedure gettextcolor;
begin
end;
"uses" statement. Your program should have a uses near the start, a simple text screen based one would have something like
uses Crt;
Is yours using an external graphics library?
This is my uses line, all the ones not commented out are in my units folder and I'm declaring the path in the setup.
uses {ovrin,}dos,crt,util,bbskit,comm,stringz,overlay; { $O util}{ $O bbskit}{ $O stringz}
procedure module.showansi(screen:string);
var showfile : text;
ch : char;
abort : boolean;
oldfore, oldback, ior : integer;
str : string[255];
pausecmd : string;
If you have the documentation or source code to build the tpu files, search in those. Otherwise you may be able to use the TP unit browser.
Start TP7 with TPX.EXE. Try compiling your program again, then from the menu Search ->Units. You should see a window Browse: Units. You can then click down through each one and where it is defined. Click again on any of these should show you the file/line where it is used.