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

Hoe can we do retesting using functions please give the code for it using login page

1942


Explain about datafile/verification of date file when file is not available in local system?

2732


can anyone tell me from where i can download qtp demo or crack version

1990


Explain actions in qtp ?

972


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1826


Write a script to customize the test results in PDF and HTML format.

2542


How do you know the location Id of an object if you know its index id?

1039


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

2143


What is the extension of the qtp local repository?

1071


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

1871


Hi Samrat, Thank u very much, what u said it is right.

1878


What are the views available in qtp?

1023


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1785


If created one virtual object? Next time I changed the window position will it work?

1037


To which environments does quicktest professional supports?

998