Reputation: 4595
I have several custom components in my uses list of a unit. For some reason, D2009 is saying that it cannot resolve the unit name. But it seems as if it can find it - the code compiles fine.
How can I have it resolve the unit names at design time though? My Structure window is showing all kinds of 'Undeclared Identifier' errors because the references in the Uses clause are not being found. This makes it difficult to code, and to debug legitimate errors in my code.
Upvotes: 1
Views: 10421
Reputation: 11
suppose you have unit A and unit B, you call some methods in unit B from unit A, you can solve the problem by the following steps.
That is it!!!!
Upvotes: 1
Reputation: 12898
I think this is something the IDE Fix Pack 2009/2010 can help you with.
RAD Studio 2009 fixes:
<snip>
QC #22880: Cannot resolve unit name
Upvotes: 5
Reputation: 84540
Error Insight doesn't look for units the same way the normal compiler does, unfortunately, and it can lead strange results like that. Try adding the units that your custom components are in to the DPR. That should fix the problem.
Upvotes: 1