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 is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


i have string "I LIKE INDIA"..how to i get LIKE from the sting..

6 Answers   HealthAsyst,


What is the file extension of the code file in qtp?

0 Answers  


Hi All. Can you please explaing what is checkpoint? How it Will Work? what is meaning of "check checkpoint ("proprtname").how it will compate with expected value? Thanks in Advance............... Lakshmi

3 Answers   ITC Infotech, TCS,


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  






How to Compare two database tables by using QTP?Please give me code details.

1 Answers  


How to manage a drag drop event in the qtp

3 Answers  


What is test automation framework?which framework does QTP follow?Need some practical explanation as to how u will start ur testing process following a particular framework?

2 Answers   IBM, Sony,


what type of run time errors you get while you ar edoing rpg program?

0 Answers  


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

0 Answers  


what are the Common Problems in S/w development process

1 Answers  


i need the licence key for QTP V9.5 can anyone help me on getting this?

140 Answers  


Categories