>>Nadya,
>>
>>Just set delete to cascade for the relation. Open the database, select Edit Referential Integrity from the Database menu, click on the Rules for Deleting tab, scroll to the Regions and TownRegions relation and set to cascade.
>
>Ok, now the question is: How can I get rid of the generated code? Suppose, I want to generate this code by myself (or using some special utility from Download section)? Seems like once added, I can get rid of it, and I can only delete it from SP code. Is it correct way?
Hmmm... if you delete the generated code then you'll also be deleting the code that cascades the deletes to the child. If you're not happy with VFP's RI code engine, you might want to consider using a CASE tool for your database. I can recommend xCase (
www.xcase.com), it allows you to define code templates for RI generation.
Brien R. Givens
Brampwood Systems