Re: Clearing Variable and Functions



I have a script which needs to reset a series of variables several
times; I have a function setallvar() which first obtains all these
global variables, then sets them all. It's quite a tedious setup, but
quite useful to be able to basically unset them all like this. You
said this is poor form, what would you suggest instead, to mass-set
variables?

.



Relevant Pages

  • Re: Error handling problem.
    ... The script appears to be working fine, ... >a problem with the error handling. ... The Err object is implemented in scope-specific manner. ... will implicitly clear (reset) any error settings. ...
    (microsoft.public.windows.server.scripting)
  • Re: How to set up a global variable in a sub-routine?
    ... the 'global variables' are more like constants ... ... single script, I need a way to tell it only once where the file is and ... So, if you construct a loop with a loop variable, you ... >programmers avoid global variables completely. ...
    (perl.beginners)
  • Re: Global Variables - Untrapped Errors
    ... The answer could depend on what you mean by an untrapped error. ... Choosing End resets the variables, but choosing Debug lets you work with the variables until you Reset or do something that triggers a reset. ... Even something with tens of thousands of lines of VBA code would have perhaps 2 or 3 public variables reserved for very specific circumstances, and the lifetime I rely on them for would typically be a millisecond or a few seconds at most. ... seems like it is resetting all global variables when this occurs. ...
    (comp.databases.ms-access)
  • Re: Setting sql result to global variable?
    ... some dummy SQL to set-up the parameter mapping, then the real SQL will get ... I also suggest you use SET NOCOUNT ON at the top of your script, ... Global Variables and Stored Procedure Parameters ... > Set objPkg = DTSGlobalVariables.Parent ...
    (microsoft.public.sqlserver.dts)
  • Global Variables Between Parent and Child Documents (Windows)
    ... Heavily scripted HTML document #1, very application-like, must include the ... function to name a "callback" function, and within its own script block, ... the filesystem/file selection interface as dynamically updated HTML- ... I am seeing this as a some sort of conflict of global variables between ...
    (comp.lang.javascript)