How to make arguments optional in a function?

Answers were Sorted based on User's Feedback



How to make arguments optional in a function?..

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

How to make arguments optional in a function?..

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

Post New Answer

More QTP Interview Questions

when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?

1 Answers   Symantic Space,


hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in

1 Answers  


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

1 Answers   Autodesk, EDS, Wipro,


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

0 Answers  


How many types of trigger events are there in qtp?

1 Answers  


Tell me the situations where we will use Data Driven?

2 Answers  


Why we are selecting QTP for testing ?

20 Answers   HP,


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1 Answers   IBM,


How do you return a value from a function

1 Answers  


Explain quicktest professional testing process?

1 Answers  


Hi PLZ explain User Defined Functions in QTP with eample?

2 Answers   Ordain Solutions,


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

1 Answers   EpuraTech,


Categories