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
What is sql loader? Explain the files used by sql loader to load file?
What are the properties of regexp object?
What are string functions in vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Write a code to print numbers from 5 to 0?
How to open browser in vb script?
What are the differences between sub procedures and function procedures?
What is purpose of scripting.filesystemobject class in vbscript?
Explain few date functions in vbscript?
How are comments handled in the vbscript language?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
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?
What is the scope of a constant declared using public?
How to assign a date value to a variable?
How can you create an object in vbscript?