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
Difference between action & Reusable action?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
How can I use Call dlls in QTP ?
How will you check a web application for broken links using qtp?
Explain how you can find the absolute value of the number in qtp?
What are table and db checkpoints?
Hi All, I need code for how to execute qtp scripts from excell sheet
Difference between test object and run time object?
what is the difference between built-i function and In-built function?
How to integrate the qualitycenter with qtp
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
What is the difference between keyword view and expert view?
How the exception handling can be done using quicktest professional?