reverse the string without using reverse string?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the differance between BYVAL,BYREF?

1772


How are values assigned to string type and numeric type variables?

542


How to replace junk code recorded by QTP with a mall function.

1649


Explain about the extension .hta?

627


Explain sga memory structures?

581






Mention what is the difference between vbscript and vba?

525


How will you get a combined string from array of string in vbscript?

551


How many types of procedures are available in the vbscript language?

536


How to capture a runtime error in vbscript?

630


Can u describe what kind of testing are for OTC derivates by banks.

1670


When are redim statement and preserve keyword used in the vbscript language?

603


Differentiate javascript and vbscript?

567


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

1602


Can automation testing find ssame no. of bugs what we can find by manual testing?

1474


Which operator can be used to change the value of the operand or change the state of the condition?

581