Micro Focus QTP (UFT) Forums
Qtp select item using regex - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: General (https://www.learnqtp.com/forums/Forum-General)
+--- Forum: Posting Guidelines/Disclaimer (https://www.learnqtp.com/forums/Forum-Posting-Guidelines-Disclaimer)
+--- Thread: Qtp select item using regex (/Thread-Qtp-select-item-using-regex)



Qtp select item using regex - nivi - 06-25-2016

I am studying qtp, I have a list field and I want select an item form that. For that I am using the following code and it's was generate using record option in qtp. now the system using Select "123" for selecting. Instead of 123 I want ^1\d\d

Actual codeĀ 

Code:
VbWindow("frmMDI").VbWindow("frmcheckIn").VbComboBox("cboRoomNo").Select "123"

I am tried the following code but it's not working

Code:
VbWindow("frmMDI").VbWindow("frmcheckIn").VbComboBox("cboRoomNo").Select ("^1\d\d")

--
Thanks
nivi