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

I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2416


What is expert view and keyword view?

621


What is the default add-ins in qtp?

550


Should have experience in framework means?

1411


How to use descriptive programming?

601






How to use output values in qtp ?

552


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1607


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1500


How the exception handling can be done using quicktest professional (qtp)?

565


How to get the particular property value?

608


What is use of object spy?

608


Explain about the test fusion report of quicktest professional?

525


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

1412


What is the difference between the design-time and run-time data tables?

552


How to connect to a database?

575