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

Flight reservation using input and output parameter script.

1 Answers  


Limitations in QTP?

0 Answers   CIL,


When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?

6 Answers  


With out using the task manager,how to close the application using vbscript and what is the statement?

1 Answers  


what is the difference between IE & Netscape in web testing on a log in page

0 Answers   TCS,


Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri

3 Answers  


what testplan contents and what test strategy contents,what is the diff b/w them

0 Answers  


what is spy, and how can u use?

1 Answers  


what is frame work of qtp?

4 Answers   ITC Infotech, KPIT,


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

0 Answers  


What is difference between version 6.5 and 8.2 in QTP?

0 Answers  


There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?

4 Answers   Wipro,


Categories