reverse the string without using reverse string?

Answers were Sorted based on User's Feedback



reverse the string without using reverse string?..

Answer / cnu_thatavarthi

Option Explicit
Dim strValue,iCount, strNewValue

strValue = "CapGemini"

For iCount = Len(strValue) To 1 Step -1

strNewValue = strNewValue& Mid(strValue,iCount,1)

Next

strNewValue = Trim(strNewValue)
MsgBox strNewValue

'Expected value
---------------------------

---------------------------
inimeGpaC
---------------------------
OK
---------------------------

Is This Answer Correct ?    0 Yes 0 No

reverse the string without using reverse string?..

Answer / rajani_kanth

Option Explicit
Dim a,c,d,i
a="RajaniKanth"
For i=Len(a) To 1 Step-1
c=Mid(a,i,1)
d=d&c
Next
MsgBox d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How to add actions in driver script to run those actions in QTP?

0 Answers  


Explain about the functionality of vb script?

0 Answers  


Anyone have qtp11.0 crack?

0 Answers  


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

0 Answers  


How will you reverse a string in vbscript?

0 Answers  






In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 Answers  


What are the naming conventions while declaring a variable in the vbscript language?

0 Answers  


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

0 Answers   Zensar,


Explain about .wsf files?

0 Answers  


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

0 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


Write a program using Java Script / VBscipt that checks if two matrices have identical values in all the elements

1 Answers   Ignou,


Categories