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 use of the formatdatetime function in the vbscript language?

552


Explain about arrays in vb script?

604


There are 5 web pages.write a script to click the button on 4th web page.

2938


What is loose binding? Why is it not a good practice to use it?

633


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

564






Explain the string concatenation function in vbscript?

540


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

542


Explain vbscript in detail?

617


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3273


How will you compare two strings in vbscript?

594


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1753


what types of bugs will we find out in banking projects for automation testing?

1764


What is the difference between for loop and while loop?

550


What purpose does ‘on error resume next’ serves?

549


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1491