03-22-2011, 11:22 AM
If you want to create an object and use it across use it as a function. You can call this function in your various actions.
Here is how environment variable works,
Here is how environment variable works,
Code:
Under Action 1:
Environment.Value("oStringValue") = "LearnQTP"
In Action 2, Action 3, Action 4..etc etc. you can access this stored value as,
oMyVar = Environment.Value("oStringValue")
msgbox oMyVar ' this will give you LearnQTP which is the value the variable holds.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.