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 / nivas
The below given is perfect script for this Query.
Dim str
str = "i love india"
arr = split(str, " ")
for i=lbound(arr) to ubound(arr)
revStr = strreverse(arr(i))
fStr = fStr & revStr & " "
next
msgbox fStr
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can we use index on view?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
How to suppress warnings from the test results page?
What is the difference between rational rose and QTP?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
How would you directly trigger javascript in a test?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Hybrid framework supports Descriptive programming. Is it true?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
How can you give wait up to 10 seconds in qtp?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link