Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

[UFT] Get Item of ListBox and convert it to array

$
0
0
Hi,
I have this code:
Code:
listDataItems = SwfWindow("MicAnalytics").SwfList("listBoxExt1").GetContent()
                
listDataItemsReplace = replace(listDataItems22, vbCrLf, ",")
dataItemArray = Split(listDataItemsReplace , ",")

I would replace new line char in listDataItems with comma char.

Why my code not work?

I've tried with vbCrLf, vbNewLine, but nothing.

Help?

Thanks.

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>