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
When and why to use descriptive programming?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
What is the use of sendkeys and what are send keys
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
Where to use Property Let, Property Get, Property Set in UFT
Differences between quicktest professional (qtp) and winrunner?
Should have experience in framework means?
is it possible to add sheets to excel at runtime
Explain hybrid framework with advantages and disadvantages?
Explain about Test Fusion Report of QTP?
What is checkpoints for quicktest professional?
Suppose I want fail that check point? How can you do that?
What is the use of running the scripts in Hidden-mode in UFT?
how to do the batch testing in test director using manual testing procedure?