Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find where record type is declared - Delphi 4

Status
Not open for further replies.

tuttleml

Programmer
Feb 14, 2002
2
US
Hi,
I am new to Delphi. There is a procedure in a .pas unit that has the following reference to a record type
var
rec : TBFPensionDetailRec

Later in that same procedure it will

rec := TBFPensionDetailRec.Create

It will then use values of the "rec" record to do stuff.

THE PROBLEM I HAVE is that I cannot find the declaration of this record type TBFPensionDetailRec. I did a search of the whole .dpr project that contains this .pas and all the others. What am I missing? Am I that dumb?

Mark T.
mtuttle@glhec.org
 
Rec is not a record type but an object. It has the method create
It could be a form that is created dynamically, check in
view --> project manager
for a list of all units and forms. Display them and look if you can find BFPensionDetailRec
S. van Els
SAvanEls@cq-link.sr
 
Mark,

Not dumb, just learning the code base. :)

Personally, I'd use the Search | Find In Files command to locate all files in your source directories containing "TBFPensionDetailRec".

You'll probably get a lot of hits, but one of those should lead you to the declaration.

Alternatively, if the declaring unit is part of the project, you can also try moving the cursor to the word "TBFPensionDetailRec", right-clicking it, and then choosing Find Declaration.

Depending on the way your application is organized, this may also work. But, I've found the original approach works best. (Many people do not include dependent units as part of the project.)

If you're not able to find "TBFPensionDetailRec" in your project's directory or any of its child directories, then take a look at the Directories/Conditionals table of the Project | Options dialog. This will show other directories being searched.

Mind you, all of this assumes that you have tohe source for the unit declaring TBFPensionDetailRec and not just a DCU.

There are other tricks available, but we'll hope you have the source eavailable. :)

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top