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 can the spaces from the string be removed?

0 Answers  


write a vb script to display calculator using case statement?

1 Answers  


What are the 2 ways to pass a value to the function?

0 Answers  


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

0 Answers  


What's the difference between vbscript and vb.net?

0 Answers  






Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it

1 Answers   IBM,


Explain the adodb.stream class?

0 Answers  


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

0 Answers  


Explain the .wsf files?

0 Answers  


How to check the particular window is exist or not with out using check points

2 Answers  


I wrote the vbscript code on notepad i was geeting run time error "object required line 1" my code is set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signin("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Setsec ure.Crypt.Encrypt("entr password") browser("gmail").page("gmail").WebButton("siginobj").click pls tell me whats wrong

1 Answers  


Is vbscript a case-sensitive or case-insensitive?

0 Answers  


Categories