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

we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like )

6 Answers   Accenture,


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

0 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


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

0 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,






Why do we use Option Explicit?

6 Answers  


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

0 Answers  


Which function is used to perform string comparison?

0 Answers  


How to pass the parameter from one function to another function in VB Scripting?

1 Answers   Fastenal,


how to add the shared repository file to the script file while running the script manuall

2 Answers  


Mention how to create a cookie using vbscript?

0 Answers  


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

0 Answers   Zensar,


Categories