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

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

3277


How will you get a combined string from array of string in vbscript?

549


Explain about .wsf files?

622


How can the spaces from the string be removed?

593


after medical test,when will be the police verification

1718






What is the purpose of folders object of scripting.filesystemobject class in vbscript?

873


What if you do not specify anything when you call a procedure?

540


Both Static and dynamic arrays are handled by VB script. Is it true?

614


Explain few date functions in vbscript?

614


Explain the asc function?

509


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

583


In html file what is an ideal position to include vbscript?

814


when we use filter funtiom invb script(QTP)

2304


Explain the adodb.stream class?

548


How do you declare a variable in vbscript?

631