<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 Oct 2016 03:34:00 Z</lastBuildDate><pubDate>14 Oct 2016 00:54:00 Z</pubDate><description>Hi&#13;
&#13;
I have just encountered a (so far) seemingly strange thing...&#13;
&#13;
I created a new project - and imported global procedures from an existing project. [WD19]&#13;
&#13;
(The existing project is a standard 64 bit configuration - the new project is configured as a webservice)&#13;
&#13;
The new (WD webservice project) gives compile errors for out of scope variables. The variables "are" out of scope in that they are declared within an IF-ELSE-END block - then used/referenced outside the block (below the declaration).&#13;
&#13;
However, this code does not flag any errors in the existing Windows project - and seemingly works fine.&#13;
&#13;
I am trying to figure out how and why the compiler works differently with different configurations. So far, I am just assuming that that is the way it is - and that as a 'webservice' it is being compiled with a different compiler - perhaps for compatibility with the application server?&#13;
&#13;
Anyone have any insights as to what is actually happening?&#13;
&#13;
&#13;
Regards&#13;
Derek</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope/read.awp</link><title>[WD] variable out of scope</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/59964-variable-out-scope-60011/read.awp</comments><pubDate>17 Oct 2016 03:34:00 Z</pubDate><description>Ah! Yes. Thank you!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope-60011/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope-60011/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope/read.awp">[WD] variable out of scope</source><title>Re: [WD] variable out of scope</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope-59969/read.awp</comments><pubDate>14 Oct 2016 09:46:00 Z</pubDate><description>Hello !&#13;
&#13;
See option in WinDev (Project -&gt; Compilation -&gt; Scope of local variables limited to the current block)&#13;
&#13;
[attachment…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope-59969/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope-59969/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59964-variable-out-scope/read.awp">[WD] variable out of scope</source><title>Re: [WD] variable out of scope</title></item></channel></rss>
