<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>26 Jun 2016 10:58:46 Z</lastBuildDate><pubDate>26 Jun 2016 10:58:46 Z</pubDate><description>What is wrong in this code?&#13;
&#13;
Numbers is array of 10 int&#13;
Line is int&#13;
Value_x is int = 5&#13;
&#13;
for x = 1 to 4&#13;
     Number[x]+= Value_x &#13;
end&#13;
&#13;
When I debug this code then on the line Number[x] += Value_x  the debugger stops and says &#13;
WDTST.EXE doesn't work anymore and sometimes WINDEV21 crashes.&#13;
&#13;
When I change the code as follows:&#13;
&#13;
for x = 1 to 4&#13;
     Number[x] = Number[x]+ Value_x &#13;
end&#13;
&#13;
then all works fine.&#13;
&#13;
Is this a bug in the debugger or is it not possible to use += for an array?&#13;
&#13;
--&#13;
Roy van der Lee</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58321-wd21/read.awp</link><title>WD21  +=</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
