Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UFT] Compare value of List with DataTable
#1
Not Solved
Hi,
in my application I have a ListBox, I get all items with:
Code:
allGroups = SwfWindow("myApp").SwfList("listBoxGroup").GetROProperty("all items")
that it returns me:
"item1
item2
item3
item4"

In my DataTable I insert in one cell this values
"item1
item2
item3
item4"

If I use an easy IF condition, it doesn't work:
Code:
If allGroups = DataTable.Value("groups_to_expected", "Step 1") Then
     ....my code
End If

The conditions is always FALSE.

Why?
Could be an error with new line char?

Thanks.
Reply
#2
Not Solved
what kind of error message you got so that i can reply to you
Reply
#3
Not Solved
That the two string are not equals.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Datatable iterations Studymode 2 3,769 12-12-2017, 11:10 PM
Last Post: Studymode
  Compare WebTable Elements saraiado 1 2,553 06-11-2015, 06:54 PM
Last Post: venkatesh9032
  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 compare two binary values Naresh 0 2,339 09-09-2014, 05:06 PM
Last Post: Naresh
  Capture Value through Text Checkpoint and compare with datatable value hamzaz 2 4,731 03-06-2014, 12:52 AM
Last Post: mallika.g

Forum Jump:


Users browsing this thread: 1 Guest(s)