06-22-2011, 07:39 AM
Hello there,
I have a library file that is being used by all scripts, for some functions I use Environment Variables to pass values between scripts, my question is:
How to initialize a Environment Variable?
For example, I have a script that call a function x, Function x uses Environment.Value("Test123"), but the script that is calling function x did not initialize Test123....so when it runs, I get an execution error.
I know the correct way is to initialize the variable, but if for a reason I don't, how to validate Test123 exist and if doesn't to initialize it with a default value?
Thanks for your help.
I have a library file that is being used by all scripts, for some functions I use Environment Variables to pass values between scripts, my question is:
How to initialize a Environment Variable?
For example, I have a script that call a function x, Function x uses Environment.Value("Test123"), but the script that is calling function x did not initialize Test123....so when it runs, I get an execution error.
I know the correct way is to initialize the variable, but if for a reason I don't, how to validate Test123 exist and if doesn't to initialize it with a default value?
Thanks for your help.