Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to associate shared object repository to test in qtp?

1046


in a web page How to check and display a particular word from a paragraph?

2538


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2979


what are the limitations of smart identification in qtp 9.0

2422


Explain the terms test and business component?

1072


What are output values and why they are used ?

1122


How do Parameterization and Data-Driving relate to each other in QTP?

1110


When ‘option explicit’ keyword is used in qtp?

1332


Can we create a qtp test from qc?

1098


What are the different types of checkpoints?

1101


What is the basic concept of qtp?

1049


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2870


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

2009


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

2194


What is the extension of the recovery scenario file in qtp?

1044