How to swap two numbers by using parameter passing method
byref in a fucntion and return the result to outside of the
function?



How to swap two numbers by using parameter passing method byref in a fucntion and return the resu..

Answer / aqueeb khan lodi

call swap ("AQUEEB")
msgbox Environment("num")
Sub swap(str1)
var1 =len( str1)

For i = 1 To var1 Step 1
var2 = right(str1, 1)
var3 = left(str1,(var1 - i))
var4 = var4& " " &var2
str1 = var3
Next
Environment("num") = var4
End Sub

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the advantages of Object Repository?

1 Answers  


please send detail navigation for merging of object ripositories in QTP 8.2

3 Answers   Infosys, Ordain Solutions,


we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position part2:maore than the answer for this question i want the the reason why testers go for this kind of risk.what is the use of we testers having these kind of attempts.is that not the problem with the developer .pls answer .real time users of tools.in which way these solutions help to test with r without affecting the developed souce code.

3 Answers  


What is API?

1 Answers  


What is the vb script when the url enter into the browser

2 Answers   Satyam,


what is the smart identification techniqu?what r the different mechanisums used in it?

0 Answers   Accenture,


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1 Answers  


if interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company?

1 Answers   iGate,


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

1 Answers   Zensar,


when i am running login page i got test run error? Please give me the script to handle run time exceptions. It's urgent for me.

4 Answers  


What is checkpoints for qtp?

1 Answers  


.qfl extension for which file? where vl use it

3 Answers   iFlex,


Categories