Highlighted
Valued Contributor.
Valued Contributor.
590 views

Array to Environment variable

Jump to solution

Hello everyone,


I have seen few examples how to store an array to an environment varaible.

 

Could someone provide me with an good example 

 

Thank you in advance


Regards

0 Likes
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.
Honored Contributor.

Here is a very simple example
environment("eTest") = "Test"
print environment("eTest")


vArr = split("a;b;c;d"";")
environment("eTest") = vArr
print environment("eTest")(0)

GoScriptLESS Create UFT Tests in seconds view demo and more details at scriptlessautomation.com

View solution in original post

3 Replies
Highlighted
Knowledge Partner
Knowledge Partner

Are you confusing an environment varaible with a dictionary object. I've never seen anyone using an environment varaible to store an array but I've seen dictionay object used many times.

Mark Smith.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Here is a very simple example
environment("eTest") = "Test"
print environment("eTest")


vArr = split("a;b;c;d"";")
environment("eTest") = vArr
print environment("eTest")(0)

GoScriptLESS Create UFT Tests in seconds view demo and more details at scriptlessautomation.com

View solution in original post

Highlighted
Valued Contributor.
Valued Contributor.

Thank you a lot I will test that! 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.