Micro Focus QTP (UFT) Forums
Compare an Array and data from a column in webtable - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Compare an Array and data from a column in webtable (/Thread-Compare-an-Array-and-data-from-a-column-in-webtable)



Compare an Array and data from a column in webtable - SweetyChowdhury - 08-31-2010

Hi All,

I want to compare an array with another array which collects the values from a column in a webtable.

My basic doubt is how to kept the conditions while comparing them.
1) scenario 1:
If any of value is "Not started" in second array,the result shud be "In progress"

2)scenario 2
If all the value is "Approved" in second array(can have "Not Required" as a value),the result shud be "Complete"

Can somebody help in providing suggestions on how to code it?


RE: Compare an Array and data from a column in webtable - rdemers25 - 09-03-2010

My suggestion would be to put the information into an array and compare the array elements. Then you can have the exceptions in your 2 scenario's.