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 ate the Technologies supported by QTP?

0 Answers  


what is the general issues faced while using automation tool Qtp9.0

1 Answers   TCS,


We stored into the objects OR and then write the scripting

0 Answers   L&T, Wipro,


How you create new action in qtp?

0 Answers  


Whether qtp 9.0 supports Test director8.0

0 Answers   TCS,






How to test fly out menu in qtp?

0 Answers  


How can I change object description or check point values in qtp?

0 Answers  


What is a Dictionary object in QTP.?

1 Answers   Cap Gemini,


There is a very good institute for Automation Testing using QTP.For more details please visit jbslearnings.com.

1 Answers  


What is chaild object method? When we will go for chaild object method? How to use chaild object method?

2 Answers  


what could go wrong with test automation?

0 Answers  


In Remote acess server how u run a test?

0 Answers  


Categories