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
Why is it recommended to close the database connection every time after the work is completed?
Is vbscript a case-sensitive or case-insensitive?
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
Mention what is vbscript procedures?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Which function is used to perform string comparison?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
What are subprocedures in vbscript?
What is purpose of scripting.filesystemobject class in vbscript?
How will you get a combined string from array of string in vbscript?
Mention when to use function procedures and what are its characteristics?
Mention how to access array data?
how to operate webobjects in a webpage using getobject function and then using generic methods?
write any ttest cases using check points and parameterization
What are the special sub-types in vbscript?