Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Get Item of ListBox and convert it to array
#1
Solved: 8 Years, 11 Months, 3 Weeks ago
Hi,
I have this code:
Code:
listDataItems = SwfWindow("myApp").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.
Reply
#2
Solved: 8 Years, 11 Months, 3 Weeks ago
Hi,

I would check on single item of list.

I resolved with this code


Code:
For i = 0 To SwfWindow("MicAnalytics").SwfList("listBoxExt1").GetItemsCount()

     If my_condition Then
           'todo
    End If

Next

Thanks a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot identify the specified item Beginner 0 2,481 06-22-2017, 04:55 PM
Last Post: Beginner
  [UFT] SwfObject as Toolbar: select item without coordinates felino 0 3,294 11-27-2015, 03:09 PM
Last Post: felino
  WinListView set item command Shahino007 0 2,643 10-06-2015, 03:57 PM
Last Post: Shahino007
  Objects are being recognized as "Windows for Menu item list (Browser-firefox, UFT 12) akhandesh 0 2,527 05-27-2015, 06:29 PM
Last Post: akhandesh
  How to convert a single dimension array to two dimensional array venkatesh9032 3 5,512 02-10-2014, 03:07 PM
Last Post: pranikgarg

Forum Jump:


Users browsing this thread: 1 Guest(s)