On 03/17/2023 10:44 AM, dave bruchie wrote:
the first line of the global man page says: This command has no effect unless executed in the context of a proc body.
If you remove the "global myGlobal: line from your example, there should be no change in the results.
The variable is created (or not) in the normal way by the following set command.
Dave B
Hi Dave,
Thanks for the reply. I had seen the clear statement in that manpage
but I guess it didn't register.
So, it looks like you don't need to use a "variable" command in a
namespace in order to create that variable in the namespace. The reason
for using one, outside of a proc, is to ensure the variable is created
in the namespace just in case that variable also exists in the global namespace.
The method used to resolve variable names is explained in the "Name
Resolution" section of the "namespace" manpage.
-mike
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)