<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Apr 2015 12:16:00 Z</lastBuildDate><pubDate>7 Apr 2015 12:05:00 Z</pubDate><description>Hi,&#13;
&#13;
I have an array of structures and based on the value of one or more items, some of the array elements needs to be deleted.&#13;
&#13;
ST_Test is structure&#13;
sName is string&#13;
nAge is int&#13;
end&#13;
&#13;
sTest is ST_Test&#13;
arrTest is array of ST_Test&#13;
... file arrTest here&#13;
&#13;
Say arrTest holds 5 elements and I want of delete all elements where nAge&lt;25&#13;
FOR EACH sTest OF arrTest&#13;
IF sTest.nAge &lt; 25&#13;
ArrayDelete(arrTest)&#13;
END&#13;
END&#13;
&#13;
When I do this the FOR-EACH loop is affected. And skips some of the rows.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51390-wd19-browse-array-structure-and-delete-elements/read.awp</link><title>wd19 - browse an array of structure and delete elements</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51390-wd19-solved-browse-array-structure-and-delete-elements-51396/read.awp</comments><pubDate>7 Apr 2015 12:16:00 Z</pubDate><description>As usual,&#13;
Solved a problem while trying to explain it.&#13;
It works as expected when using using&#13;
&#13;
FOR EACH sTest OF arrTest From…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51390-wd19-solved-browse-array-structure-and-delete-elements-51396/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51390-wd19-solved-browse-array-structure-and-delete-elements-51396/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/51390-wd19-browse-array-structure-and-delete-elements/read.awp">wd19 - browse an array of structure and delete elements</source><title>Re: wd19 - SOLVED browse an array of structure and delete elements</title></item></channel></rss>
