<?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 Aug 2017 19:56:00 Z</lastBuildDate><pubDate>2 Aug 2017 23:10:00 Z</pubDate><description>Al wrote in 2012: "The other thing I have found with the For All syntax is that it doesn't always work if the action you take inside the loop writes to the file being scanned, so if your Do_The_Deed code writes to the OrderItem file it can cause it to go to the end of the file and close out of the For All loop."&#13;
http://27130.foren.mysnip.de/read.php?27131,133147,133156#msg-133156&#13;
(bolding is mine)&#13;
&#13;
Well, no improvement in this respect. The same problem still exists in WD21; the code doesn't do what it is supposed to do, it just slips through the loop doing nothing...&#13;
&#13;
The workaround for this is to use instead a HReadFirst - HReadNext structure to do the deed.&#13;
&#13;
Best regards&#13;
Ola&#13;
&#13;
PCSoft's motto: "Why fix old bugs when it's much more fun creating new ones":eek:</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp</link><title>[WD21] FOR ALL does not always work as documented</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/62066-wd21-for-all-does-not-always-work-documented-62136/read.awp</comments><pubDate>7 Aug 2017 19:56:00 Z</pubDate><description>Quote&#13;
Art Bonds&#13;
&#13;
And Russ Eggan said "If it's not there, you don't need it!"&#13;
&#13;
Yup, that was more or less the case :)&#13;
&#13;
And…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62136/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62136/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62148/read.awp</comments><pubDate>7 Aug 2017 16:02:00 Z</pubDate><description>Quote&#13;
Tor-Bjarne&#13;
&#13;
&#13;
&#13;
I had for each in Progress 4gl years ago and liked it, was actually my first posting on the Clarion for…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62148/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62148/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62106/read.awp</comments><pubDate>5 Aug 2017 19:25:00 Z</pubDate><description>Hi Peter,&#13;
&#13;
I just have to underscore what Fabrice is saying. In the last 15 years we wrote quite a lot of very complex WINDEV …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62106/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62106/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62105/read.awp</comments><pubDate>5 Aug 2017 15:58:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
As an example: try to consume standard SharePoint webservices out of WX including ComplexType xml elements. Undoa…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62105/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62105/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62102/read.awp</comments><pubDate>5 Aug 2017 13:41:00 Z</pubDate><description>Hi Peter,&#13;
&#13;
Quote&#13;
Peter Holemans&#13;
&#13;
&#13;
&#13;
I had to learn it the hard way. Been there done that for more than 17 years. I just hi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62102/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62102/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62103/read.awp</comments><pubDate>5 Aug 2017 00:11:00 Z</pubDate><description>Quote&#13;
Fabrice&#13;
&#13;
The "for all" seem to be in the categories of things they had to add for people coming from another language t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62103/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62103/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62093/read.awp</comments><pubDate>4 Aug 2017 17:22:00 Z</pubDate><description>Quote&#13;
Fabrice&#13;
&#13;
And for those of you who don't know me yet, I DO like to be in control when I code &#13;
&#13;
Hi Fabrice,&#13;
&#13;
Agree co…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62093/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62093/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62092/read.awp</comments><pubDate>4 Aug 2017 16:15:00 Z</pubDate><description>Hi Tor Bjarne&#13;
&#13;
Nope&#13;
&#13;
For each string s1 of Str2&#13;
&#13;
Loop+extractstring&#13;
&#13;
for each ds of data source&#13;
Hreadfirst/next&#13;
&#13;
for …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62092/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62092/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62085/read.awp</comments><pubDate>4 Aug 2017 10:34:00 Z</pubDate><description>Quote&#13;
Fabrice&#13;
&#13;
I personnaly NEVER use the FOR ALL syntax.&#13;
&#13;
For each string s1 of Str2&#13;
for each ds of data source&#13;
for each…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62085/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62085/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62087/read.awp</comments><pubDate>3 Aug 2017 17:44:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
As Peter has already said, I always use a query and then use FOR EACH... to work through the result set.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62087/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62087/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62073/read.awp</comments><pubDate>3 Aug 2017 13:41:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
BE CAREFUL!&#13;
&#13;
You will have the exact same problem with a hreadfirst, hreadnext, if you modify the order of the key …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62073/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62073/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62072/read.awp</comments><pubDate>3 Aug 2017 11:50:00 Z</pubDate><description>Modifying multiple records IN A LOOP usually indicates that all valid records will be updated with the same values.&#13;
In this cas…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62072/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62072/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62071/read.awp</comments><pubDate>3 Aug 2017 10:40:00 Z</pubDate><description>Hi all,&#13;
&#13;
Thanks for the comments. I use FOR ALL a lot, especially when there is mostly just a few records to be handled. It's …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62071/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62071/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62070/read.awp</comments><pubDate>3 Aug 2017 09:38:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
Tip: use FOR EACH on query result sets (As a matter of fact use queries in all cases).&#13;
&#13;
This way you can do anythin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62070/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62070/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62069/read.awp</comments><pubDate>3 Aug 2017 07:34:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
This is not really a bug, this is probably by design and the same is true for other programming languages. Even in Mi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62069/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62069/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62068/read.awp</comments><pubDate>3 Aug 2017 07:10:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
you will not believe it - cannot remember a single case where I used that FOR ALL thing. The (my) good old way is to&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62068/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented-62068/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62066-wd21-for-all-does-not-always-work-documented/read.awp">[WD21] FOR ALL does not always work as documented</source><title>Re: [WD21] FOR ALL does not always work as documented</title></item></channel></rss>
