Micro Focus QTP (UFT) Forums
Can we use Flower Brackets while using If...Else condition? - 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: Can we use Flower Brackets while using If...Else condition? (/Thread-Can-we-use-Flower-Brackets-while-using-If-Else-condition)



Can we use Flower Brackets while using If...Else condition? - dinesh_d_r - 11-25-2008

Problem:
I am reading the contents of the sheet1 based on the conditions in sheet1 i need to read the contents of the sheet2.

By using if else condition i am not able to read the contents of sheet2.

Please can any one suggest if they have any idea of reading excel sheets?


RE: Can we use Flower Brackets while using If...Else condition? - yaron.assa - 11-26-2008

Do you mean something like this:

Code:
If DataTable.Value("Param1", "Sheet1") = "Something" then
   MsgBox "OK"
Else
   MsgBox DataTable.Value("Param2", "Sheet2")
End If