Posted by Greg on December 13, 2002 at 17:13:20:
In Reply to: Re: system.pas!?!?! posted by hadez on March 03, 2002 at 22:13:30:
Go to Tools, Environment Options and pick the Library tab. The field that needs fixing is the Library Path field. In Delphi 5, the user interface (UI) allows for a browse, and you should use it rather than typing in the path manually. I detect a bit of case sensitivity in Delphi 5, or, I picked up this problem by typing in the field incorrectly. This problem originally appeared on my machine when my Windows 2000 user profile got corrupted and had to be blown away. This left me with my IDE empty of components. With my laptop at work, and my Delphi CD at home, I set out on the adventure to "fix" delphi. After reinstalling the packages that make up Delphi, I was left with this system.pas error.
I attempted to duplicate my Delphi 3 settings from another system, and after fixing my keyboard input error for the search path, I did notice some differences in the Delphi 5 Registry entries as opposed to the Delphi 3 Registry entries.
Here is the Delphi 5 entry that includes a search path for my DBISAM database components, and a generic path for other components that I collect in my Greg folder. I keep my purchased components and downloaded components outside of the normal Delphi paths for ease of backup and restore. Here is that Delphi 5 Registry entry:
Name: Search Path
In Delphi 3, the key name in the Registry is SearchPath rather than Search Path. Delphi 3 also doesn't use the "$(DELPHI)" reference but instead spells it all out, which in my case is:
C:\Program Files\Borland\Delphi 3\Lib; ... (the rest of the stuff follows)
I've seen other postings out there that suggest putting the path to LIB by using Project|Options and filling in the search path. The problem with this "fix" is that is actually a workaround that must be done for every project. That is, until you put your Delphi environment back to factory default by fixing the Search path in the Environment Options.