how to store charecters of HARIBABU Using arrays

Answer Posted / monika

dim a()
str="haribabu"
j=0
for i=1 to len(str)
s=mid(str,i,1)
redim preserve a(j)
a(j)=s
msgbox a(j)
j=j+1
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3194


Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

2558


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1590


Can anyone send me a vb script function for verifying the functionality of active links on a web page

1602


What is the extension of the vbscript file?

553






How regexp.execute method works?

593


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1616


Mention what if you do not specify anything when you call a procedure?

574


Explain the operator precedence in vb script?

656


How to Enter Values on the Command promt using VB script

1534


who will create the object?

1483


what do you mean .ota mobile format

1945


How to get the length of the string by making use of the string function?

571


What is select case statement?

609


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2398