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

How to take whole text output from screen of Bitmap Application.

0 Answers   CitiGroup,


What is parametrization ?

9 Answers  


generic function for webedit box for web application

1 Answers  


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

0 Answers  


how to automatically update the sql server2005 database records when insert in vb6?

0 Answers  






1)How to test whether items in a weblist are in alphabetical order or not?

1 Answers   TCS,


how to genarate a random numbers in vb?

2 Answers  


How should i Create Email invite with server-side Coding?

0 Answers   Altair,


Mention what is variant in vbscript?

0 Answers  


Mention when to use function procedures and what are its characteristics?

0 Answers  


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


write a vb script to display factorial of a number using function

1 Answers  


Categories