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

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

528


how does vb script help in web page designing? explain with example.

1579


Mention characteristics of sub procedures?

572


Why to use option explicit in vb script?

590


How will you get a subset of a array in vbscript?

577






what is the differance between BYVAL,BYREF?

1762


Explain what is loose binding? Why is it not a good practice to use it?

569


Why is error handling required?

561


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?

1539


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1794


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1866


Mention the rules for using option explicit statement?

471


can anyone tell me the procedure of interview held in applabs

1746


Mention the environments where vbscript could be run?

645


What is the scope of a constant declared using public?

542