how to store charecters of HARIBABU Using arrays

Answer Posted / b.hari babu

dim a()
cnt=0
str="haribabu"
for i=1 to len(str)

s=mid(str,i,1)
redim preserve a(cnt)
a(cnt)=s
cnt=cnt+1

for j=0 to ubound(a)-1
msgbox a(j)
next
next

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the extension of the vbscript file?

549


What is dictionary object in vbscript? Explain?

623


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

520


What are the different types of operators and their order of precedence?

564


What are lbound and ubound in the vbscript language?

602






I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1801


Explain about the asc function?

601


Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2027


how to check whether link is disabled in QTP??

5629


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4741


What is the use of the formatdatetime function in the vbscript language?

549


Why is error handling required?

569


What is the use of the recordset object and which statement is used to create such an object?

527


How many types of operators are available in the vbscript language?

535


Difference between dim,public and private variables in vb script?

525