Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default value for function parameters in VB6

How to specify default value for a parameter in VB6?

like image 235
rkg Avatar asked Nov 01 '10 18:11

rkg


People also ask

What is the default value of parameter method of function?

Setting JavaScript default parameters for a function In JavaScript, a parameter has a default value of undefined. It means that if you don't pass the arguments into the function, its parameters will have the default values of undefined .

Which parameters are default values?

The default parameter is a way to set default values for function parameters a value is no passed in (ie. it is undefined ). In a function, Ii a parameter is not provided, then its value becomes undefined . In this case, the default value that we specify is applied by the compiler.

What is default parameter in es6?

Default parameters allow us to initialize functions with default values. A default is used when an argument is either omitted or undefined — meaning null is a valid value. A default parameter can be anything from a number to another function.


1 Answers

Private Sub SomeSub(Optional SomeParam As Integer = 0)
    ' blah
End Sub
like image 127
Andrey Avatar answered Sep 23 '22 07:09

Andrey