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

Answer Posted / sisira

 Call AddTwo(2,4)
 AddTwo 2,4
these two ans are true





Thanks
sisira

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are Shared ORs read-only?

634


What is reusable action?

608


What is a programmatic description?

606


What is the new version of qtp which is recently released in the market?

644


What are the views available in quicktest professional?

563






How to save your test using quicktest professional (qtp)?

601


what could go wrong with test automation?

1507


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1384


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1605


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1344


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1608


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2157


Is it possible to call from one action to another action in qtp?

566


Describe how Smart Identification is used

1700


What are the different attribute used with regular expression?

537