calling a procedure in

If I call the following procedure without passing the parameter, is it going to have True or False by default?

private sub booleanprocedure(byval mybooleanvalue as boolean)
end sub

private sub callthebooleanprocedure()
end sub

Who is Participating?
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
You can make the parameter optional and set a default value like this:

    Private Sub booleanprocedure(Optional ByVal mybooleanvalue As Boolean = True)
    End Sub
Bob LearnedConnect With a Mentor Commented:
You are going to get a compiler error, since you have to specify the parameter when calling the method.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.