Micro Focus QTP (UFT) Forums
Spliting test - 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: Spliting test (/Thread-Spliting-test)



Spliting test - beejfred - 09-19-2014

Hi,
how do I split the number of out this string?
Search Results(17)
So, basically would need to get the results between the parenthesis.
thank you
Fred


RE: Spliting test - ravi.gajul - 10-09-2014

Try this
Code:
str="Search Results(17)"
msgbox mid(str,16,len(str)-16)



RE: Spliting test - Ram2009 - 10-13-2014

you may try this.

Code:
Str = "Search  Results(17)"
msgbox mid(Str, 17, 2)