Can anyone tell me QTP Script for "copy a part of text in a data table".
I had situation to copy a part of text from a cell in data table and paste it into different cell
I hava column called Picture_Path
in that I have 10 rows like: C:\Widows|Testing\Test1.jpg
Now I want to copy only Test1.jpg from that path and paste in to new Column called Picture_Name
once it pasted it should look like this in data table
I hope you guys understand my situation
Thanks to all who are taking time to read my situation
I really appreciate the way people resonding to the queries posted in SQA forums
Thanks to all and SQA Forums.
Look at string handling functions.
"Instr", "SPlit"...you have example usages in the QTP help
-- Here to Learn and share ---
The following code might help you
arr = Split("C:\Widows|Testing\Test1.jpg", "\", -1, 1)
arrElement = Ubound(arr)
Picture_Name = arr(arrElement)