Highlighted
Absent Member.
Absent Member.
243 views

QTP Text array concatenation

Jump to solution
I want to concatenate some text that is stored in an array into a Window command. Any ideas? I tried the following but does not seem to work?

Window("Text:="&StoreMachineName(j)&" - Remote Desktop").Resize 1000,1000
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.
So long as the text of the window is what you have assigned in the statement, this should work... Did you try doing a MsgBox StoreMachineName(j) just before the statement and check its value? Also verify if the "spaces" are correct.

View solution in original post

0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.
So long as the text of the window is what you have assigned in the statement, this should work... Did you try doing a MsgBox StoreMachineName(j) just before the statement and check its value? Also verify if the "spaces" are correct.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.
Are you sure the content of StoreMachineName(j) is actually a string? What is the error message you are getting?
0 Likes
Highlighted
Absent Member.
Absent Member.
works ok now
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.