Micro Focus QTP (UFT) Forums
How 2 split array n compare from a winlist ? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How 2 split array n compare from a winlist ? (/Thread-How-2-split-array-n-compare-from-a-winlist)



How 2 split array n compare from a winlist ? - Rock_On007 - 07-29-2008

Hi everybody

Can anybody plz. suggest me the solution for this problem....
iam new to QTP ...
my Scenario like this:
Iam getting a winlist in which i have a set of data that once selected goes to some textboxes..
eg: data is -- "Neha belongs to Mumbai"
and it goes to textbox having labels
Name : Neha
Status: Belongs
Place: Mumbai

Now i need to compare these two datas wether they are same or not ?
So can you please answer my query..


RE: How 2 split array n compare from a winlist ? - surya_7mar - 07-29-2008

You can use Split Function to split that string.

Syntax:

Code:
arr = Split ("Neha belongs to Mumbai", " ")