--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Greg, > > It sounds like that is what I am after, although by just giving the > record numbe of the highest level parent record, it is a bit > incomplete compared to my idea of storing and IENS. >
The OPTION file provides a nice example of a whole file cross-reference: Subfile #19.01 Traditional Cross-References: AD REGULAR WHOLE FILE (#19) Field: ITEM (19.01,.01) 1)= S ^DIC(19,"AD",$E(X,1,30),DA(1),DA)="" 2)= K ^DIC(19,"AD",$E(X,1,30),DA(1),DA) You can see here that, instead of just the IEN (DA) below the index entry, there are two subscripts, the first is the IEN in the containing file (DA(1)), and the second is the IEN in the subentry (DA). For a sub-subfile, you'd have DA(2), then DA(1) and finally DA, etc. To make this a little more concrete, suppose you know option number 10 is DIEDIT and you want to find all menus containing it. You can just consult the cross-reference: >D ^%G Device: Right margin: 80=> Global ^DIC(19,"AD",10 -- NOTE: translation in effect ^DIC(19,"AD",10,19,1)= ^DIC(19,"AD",10,515,1)= ^DIC(19,"AD",10,3393,1)= Global ^ === Gregory Woodhouse <[EMAIL PROTECTED]> "It is foolish to answer a question that you do not understand." --G. Polya ("How to Solve It") ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members