<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Dec 2019 13:55:19 Z</lastBuildDate><pubDate>6 Dec 2019 03:02:59 Z</pubDate><description>Hi, I made 4 databases A, B, C, D.&#13;
Relation A 0,1 - 0,N with B // In B I put in the analysis that A can erase B&#13;
Relation A 0,1 - 0,N with C // In C I put in the analysis that A can erase C&#13;
Relation A 0,N - 0,1 with D // Here I have integrity problems to erase the data.&#13;
Can you give me an example of how to proceed, when I delete A it deletes without problems B and C, but with D I have problems since the relationship is reversed and I need A to erase everything.&#13;
&#13;
The code would be this.&#13;
&#13;
IF YesNo(0,"Are you sure to delete the record?") = True THEN&#13;
	HReadSeekFirst(A,A_ID,TABLE_CONS_A.COL_A_ID)&#13;
	IF HFound = True THEN&#13;
		HDelete(A)                                          // Here it deletes A, B, C without problems&#13;
		HReadSeekFirst(A,D_ID,TABLE_CONS_A.COL_D_ID)&#13;
		IF HFound = True THEN&#13;
			HDelete(D)                                 // Here I have the problem since this reaction is A 0, N to 0.1&#13;
			Info("The record was deleted successfully")&#13;
		END&#13;
	END&#13;
END&#13;
TableDisplay(TABLE_CONS_A,taReExecuteQuery)&#13;
&#13;
I am learning, I appreciate any help...&#13;
Greetings from Argentina...</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data/read.awp</link><title>Delete All Data</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>dan_dan477</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67475/read.awp</comments><pubDate>6 Dec 2019 13:55:19 Z</pubDate><description>Hi  Guenter Predl.&#13;
&#13;
I want to delete the records related to A, not the entire database, apart from the integrity problem, I de…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67475/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67475/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data/read.awp">Delete All Data</source><title>Re: Delete All Data</title></item><item><author>gpredl</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67473/read.awp</comments><pubDate>6 Dec 2019 07:49:45 Z</pubDate><description>Hi,&#13;
&#13;
you can disable integrity errors using HSetIntegrity(..) https://help.windev.com/en-US/?3044058&amp;name=HSetIntegrity which …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67473/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data-67473/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67472-delete-all-data/read.awp">Delete All Data</source><title>Re: Delete All Data</title></item></channel></rss>
