how to reverse a string with out using string or predefined
function,ex:string is " i love india". the output should be
like this "i evol aidni"
Answer Posted / ramesh
Str="I Love india"
arr1=split(Str," ")
for i=0 to ubound(arr1)
arr=arr1(i)
lenarr=len(arr)
if lenarr=1 then
sing=sing&arr&" "
End if
if lenarr<> 1 then
for j=lenarr to 1 step-1
val=mid(arr,j,1)
rev=rev&val&" "
next
end if
rev=rev&" "
next
msgbox sing&rev
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the synchronization point in qtp?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
How many types of parameters are available in quicktest professional (qtp)?
How many add-ins comes by default with quicktest professional (qtp)?
Where we use data driver in qtp?
Is it possible to change the property value at runtime? How it is possible?
What is Test Fusion Report in QTP?
When to use shared and local object repository?
Explain about the test fusion report of quicktest professional (qtp)?
What is the basic concept of quicktest professional (qtp)?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
Can we run test with out adding object in object repository? How it is possible?
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
if numbers are always changing write a script for that
How QA specialist can identify when programmatic descriptions are useful?