global variables



I have a script that uses global variables to pass information
between functions. I noticed some problems so I started looking at
the debugger and noticed that the first time these variables are
declared (global .....)they are created with values. I think this is
causing my problems, but I don't know why it is happening or how to
stop it.

This is the first reference to these variables, they do not already
exist in the work space. I don't want to use them as function
arguments, it is much more conveniant for me to have them as global.

Also can anyone explain what the difference is between effective and
persistant variables? should I be using persistant variables.

The most frustratibng thing is that this part of the script only
started giving me problems today, I have been working on this for
over a week and don't understand what I did that created this problem.
.



Relevant Pages

  • global variables
    ... the debugger and noticed that the first time these variables are ... should I be using persistant variables. ... The most frustratibng thing is that this part of the script only ...
    (comp.soft-sys.matlab)
  • Re: global variables
    ... the debugger and noticed that the first time these variables are ... should I be using persistant variables. ... I would recommend you to create one single global structure and collect all the variables in that structure, ...
    (comp.soft-sys.matlab)
  • Re: Loop within (InStr) Loop problem - how do I re-read file in second loop?
    ... On your first time through first time through your ODAS Sub you 'Set' ... the first parameter 'objTextFile2' which at this point is an object and not ... > to have a problem with the script not re-reading the second file. ...
    (microsoft.public.scripting.vbscript)
  • Re: VBS Editor???
    ... du musst den Debugger nicht irgendwie in die "Gänge" setzen. ... So erfolgen die Aufrufe des Debuggers durch den WSH (entweder durch das ... die Aufrufe //D oder //X für das Script. ... > Ich habe den Quelltext von 'quadrat.vbs' in MSE7.EXE geladen. ...
    (microsoft.public.de.german.scripting.wsh)
  • Re: free source for bbs
    ... > did it the first time, fixed that, and I know how they did it the ... > second time because my password for the admin script was something ... But we are not laughing with you. ...
    (comp.lang.perl.misc)