how to store charecters of HARIBABU Using arrays

Answers were Sorted based on User's Feedback



how to store charecters of HARIBABU Using arrays..

Answer / aditya

Dim Word, reverse, arr1(), length, i
Word = Inputbox(" Enter a Word" )
length = len(word)
redim preserve arr1(length)
For i = 0 to (length -1)
arr1(i) = mid(word,i+1,1)
Next
For i = (length -1) to 0 step -1
reverse = reverse & arr1(i)
Next
msgbox reverse

Is This Answer Correct ?    0 Yes 0 No

how to store charecters of HARIBABU Using arrays..

Answer / 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

how to store charecters of HARIBABU Using arrays..

Answer / usha

str="HARIBABU"

for i =1 to len(str)

a = mid(str,i,1)

temp = temp & a & " "


next

msgbox temp

a = split(temp," ")

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

Is This Answer Correct ?    0 Yes 0 No

how to store charecters of HARIBABU Using arrays..

Answer / 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

More VB Script Interview Questions

when we use filter funtiom invb script(QTP)

1 Answers   TCS,


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1 Answers  


How will you get a random number between 0 and 1 in vbscript?

1 Answers  


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

1 Answers  


What is the scope of a constant declared using public?

1 Answers  


What is the difference between ByRef and ByVal. When to use ByRef and ByVal

5 Answers   Polaris, TCS,


what is used of Property........End Property loop ? how to write the script for it?

1 Answers  


write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  


Explain the asc function?

1 Answers  


how to find the textfile in the folder and copy file from one folder to another folder useing parameterigation in QTP

1 Answers   Accenture,


How to return a value from function...? you should not tell msgbox, print.. etc.,

6 Answers  


Mention what is the main difference between function and sub-procedure?

1 Answers  


Categories