Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split a String
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi All,
I want to know about Split function in qtp.

I want to split a text " New York To Goa"
I want 'New York' and 'Goa' in two separate variable.


Friends got it
text="New York TO Goa"
Myarr=split(text,"TO")
msgbox Myarr(0)
msgbox Myarr(1)
Reply


Messages In This Thread
Split a String - by sudhirzpatil - 12-23-2010, 07:26 PM
RE: Split a String - by sudhirzpatil - 12-23-2010, 09:39 PM
RE: Split a String - by manishbhalshankar - 12-24-2010, 10:03 AM
RE: Split a String - by sudhirzpatil - 12-24-2010, 11:10 AM
RE: Split a String - by manishbhalshankar - 12-24-2010, 11:20 AM
RE: Split a String - by sudhirzpatil - 12-24-2010, 11:37 AM
RE: Split a String - by sudhirzpatil - 12-26-2010, 09:39 AM
RE: Split a String - by UFTEnthusiast - 01-04-2011, 07:12 PM
RE: Split a String - by sreekanth chilam - 01-04-2011, 11:22 PM
RE: Split a String - by UFTEnthusiast - 01-05-2011, 03:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split function in string nidhishnair 13 63,278 07-07-2020, 03:47 PM
Last Post: helmzshelmz
Question Split Function Chaithra N 0 1,004 12-18-2019, 11:33 AM
Last Post: Chaithra N
  Split a string with multiple delimiters in VBScript nandha 2 7,940 02-10-2018, 06:44 PM
Last Post: nandha
  Replace a string in a word document with another string rekha.naik 8 14,942 11-14-2013, 12:58 PM
Last Post: pranikgarg
  Split Function diya 2 5,531 11-28-2012, 08:49 PM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)