Default value for function parameters in VB6

rkg picture rkg · Nov 1, 2010 · Viewed 16.6k times · Source

How to specify default value for a parameter in VB6?

Answer

Andrey picture Andrey · Nov 1, 2010
Private Sub SomeSub(Optional SomeParam As Integer = 0)
    ' blah
End Sub