''''To display the words in a sentence by spliting with dellimeter''''
str1="arunsingh is a good boy"
var=split(str1," ")
lenarray=ubound(var)
For i=0 to lenarray
str2=var(i)
msgbox str2
Next
Important Topics & Useful Scripts on QTP. Ask your QTP related questions at this id - asrajaputra@gmail.com
Saturday, December 6, 2008
Subscribe to:
Post Comments (Atom)
About Me
- RAJAPUTRA
- Hi all,I am Arun Singh Rajaputra. I am working as a Project Lead in a reputed organization in Hyderabad, AP, India. I have little bit knowledge on Quick Test Professional and like to share my knowledge to all through this blog.
Subscribe to get updates on this blog
NOTE
Some of the posts posted in this blog are collected and most of them have been prepared by me. If any one have objections regarding any copied posts. Please mail me so that I can take a necessary action on that post.
2 comments:
Hi,
I have set of values which i had got it from a list box. Values like "1 : xxxxxxx","2 : xxxxxx" etc. I got the count of items in the list.I am iterating the loop from 1 to itemcount.I am getting each string from the list and splitting the string with the delimiter ":" and i assigned the split function to a variable called Arraylist. When i am trying to get the data in Arraylist(0),Arraylist(1) .. I am getting some error message.
Pls help me in this .. why it is not able to get 0,1 elements from the splitted string.
For i =2 to ItemCount
ItemString = Browser("Create ECO").Page("Create ECO").WebList("CE_ChangeCategory").GetItem(i)
msgbox ItemString
Arraylist = split (ItemSting," ")
Arraylist = split (allitems,";")
What is allitems in this script.
Where u r getting values for allitems
Post a Comment