How to make arguments optional in a function?
Answers were Sorted based on User's Feedback
Answer / ashwin
Ramya you are wrong.
We can make arguments optional by writing it as two square
brackets [].
ex: Function Test(ival,sval,[<optional>])
'logic here
end function
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ramyab.mca@gmail.com
Hai.....
this is not possible as default VBS doesn't support this.
Instead you can pass a blank scring and have a default
value if arguments r not required.
K,Byeee...
Thanks & Regards
B.Ramyasri
| Is This Answer Correct ? | 2 Yes | 2 No |
wt is the use of multiple questions in QTP
What are the views available in quicktest professional?
I have below user Defained function function AddTwo(ByVal a, ByVal b) Dim Ans Ans=a+b MsgBox Ans End function Now my question comes here...from given below methods which method is right to call above function?Which is Wrong and why? 1. AddTwo(2,4) 2. Call AddTwo(2,4) 3. AddTwo 2,4 4. Call AddTwo 2,4
what is the exact Diff. Between Test and Component in QTP?
Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible
Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"
What is User defined function in QTP
tell me abt a time when u had to go above &beyind the call of duty to get the job done
What are the advantages of qtp?
In Manual testing , can u prpare bug report in TD?
images are dynamically changes how to compare two images
write a vb script to print even numbers from 1-50?
6 Answers Kclink Technologies, Logica CMG,