How to make arguments optional in a function?

Answer Posted / kotike

we can make arguments optional by using "Optional" keyword

ex: fucntion fun_name(a,b,optional c)

end function

Regards,
mahi.kotike@gmail.com

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain structured testing? plz guys with exp. do answer

1412


How you can find the absolute value of the number in qtp?

522


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1690


how u will evaluate the tool for test automation?

1370


what is review

1611






when u script reveiwing in which area u more concentrates?

1418


What environment does qtp run in?

621


Explain about Test Fusion Report of QTP?

615


What is the difference between run time object and test object in QTP?

566


How you create new action in qtp?

567


What does it mean when a check point is in red color? What do you do?

566


What are the steps involved in the recovery scenario wizard?

559


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

589


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1426


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3277