Folks,
I tried using an optional argument in a subroutine. When I try calling the subroutine from another subroutine and attempt to enter the second (optional) argument, the line of code turns red. When I try compiling I get a syntax error.
I'm attaching a Word .docx file showing the subroutine with the optional argument and what happens when I try to call it.
This is very confusing.
Any thoughts?
Vic
I tried using an optional argument in a subroutine. When I try calling the subroutine from another subroutine and attempt to enter the second (optional) argument, the line of code turns red. When I try compiling I get a syntax error.
I'm attaching a Word .docx file showing the subroutine with the optional argument and what happens when I try to call it.
This is very confusing.
Any thoughts?
Vic