X=10,Y=20 you need to swap the numbers without using a
third variable?
Answer Posted / ramyashetty
'a and b are two variables ; Following code swaps both number and string inputs
a = Inputbox("Enter a")
b = Inputbox("Enter b")
a = a + b
b = left(a,(instr(a,b)-1))
a = Right(a,(len(a)-len(b)))
msgbox "b ="&b
msgbox "a = "&a
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are private functions in QTP? How they can be called from the function library?
How will you handle java tree in qtp?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
If created one virtual object? Next time I changed the window position will it work?
What are the technics follow in writing VB script?
What is quicktest professional?
What are the types of object repository in qtp?
How does qtp identify gui object?
When to use shared and local object repository?
Will down time for server and content maintenance/upgrades be allowed? how much?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
On what document base Descriptive programming is written if build is not yet ready ?
How does you pass optional arguments in qtp?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
Explain the types of properties that quick test learns while recording?