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 you test font size, type and color using QTP tool?

3 Answers  


how to write function to validate the number of characters entering into the text box?

2 Answers   TCS,


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

0 Answers  


Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.

12 Answers   Amazon, Pyroferus,


what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?

4 Answers   CybAge,


what is the features of visual basic?

0 Answers  


How are values assigned to the variables in the vbscript language?

0 Answers  


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

0 Answers  


How are comments handled in the vbscript language?

0 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


what is the differenece btwn scripting language and programming language

4 Answers  


Categories