>Hi Bret.
>
>>Any idea how I can regenerate the RI code programmatically after removing stuff?
>
>I haven't tried this, but you could look at the source code for the RI Builder (in TOOLS\XSOURCE), instantiate the appropriate class, and call the Click method of the OK button (which does the work of generating the RI code).
>
>Actually, an even better solution is to use code that never needs to be regenerated. Steve Sawyer has written such a routine and published in the book he and Jim Booth wrote call "Effective Techniques for Application Development With Visual FoxPro 6". It's available from
Hentzenwerke Publishing.
>
>Doug
I'll have a look at the stuff in XSOURCE.
If you say Sawyer & Booth's code "never needs to be regenerated", I suppose it is alternate RI code that accounts for changes in persistent relationships and so forth. How does Sawyer & Booth's book complement "The Hacker's Guide to VFP6" (also highly recommended here)? Is it worth having both or do they tend to duplicate each other? There are limits to what I or my employer will spend.