Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to Initialize Environment Variable
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
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.
Reply


Messages In This Thread
how to Initialize Environment Variable - by jjluna - 06-22-2011, 07:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to retrieve ArrayList saved in Environment Variable Gautam26 8 4,442 11-07-2013, 08:26 PM
Last Post: ssvali
  C# Environment property using QTP API asuteau 0 3,866 08-03-2012, 06:51 PM
Last Post: asuteau
  Array as User-Defined Environment Variables Arena 3 4,126 04-16-2012, 09:19 AM
Last Post: sshukla12
  programming to use different external file of environment variables bundfromnj 1 3,696 01-19-2012, 05:32 PM
Last Post: SteveS
  how can I store a string with variable in it, in another variable? reejais 4 4,299 11-11-2010, 11:46 PM
Last Post: smeepaga

Forum Jump:


Users browsing this thread: 1 Guest(s)