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