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
Hoe can we do retesting using functions please give the code for it using login page
Explain about datafile/verification of date file when file is not available in local system?
can anyone tell me from where i can download qtp demo or crack version
Explain actions in qtp ?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
Write a script to customize the test results in PDF and HTML format.
How do you know the location Id of an object if you know its index id?
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
What is the extension of the qtp local repository?
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
Hi Samrat, Thank u very much, what u said it is right.
What are the views available in qtp?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
If created one virtual object? Next time I changed the window position will it work?
To which environments does quicktest professional supports?