Hi:
Does anyone know of a method by which a script can return the value of all variables that are currently active in it? I am writing a log sub and am trying to have a routine by which whenever the log sub is called, it will dump the values of all variables in the script to it (the log itself is a text file). So far, I haven't been able to find a collection or function that accomplishes this.
While it is obviously simple to do a simple write_file.WriteLine "variablename = " & variablename, I am trying to avoid having to explicitly list each one on it's own string and am trying to find a method to just "dump" all of them to a text file.
Thanks,
Alan
Does anyone know of a method by which a script can return the value of all variables that are currently active in it? I am writing a log sub and am trying to have a routine by which whenever the log sub is called, it will dump the values of all variables in the script to it (the log itself is a text file). So far, I haven't been able to find a collection or function that accomplishes this.
While it is obviously simple to do a simple write_file.WriteLine "variablename = " & variablename, I am trying to avoid having to explicitly list each one on it's own string and am trying to find a method to just "dump" all of them to a text file.
Thanks,
Alan