in the parameters in a function/sub how do you make a variable optional?
eg.
public sub XYZ (variable1 as integer)
end sub
how would you mae variable 1 optional?
Printable View
in the parameters in a function/sub how do you make a variable optional?
eg.
public sub XYZ (variable1 as integer)
end sub
how would you mae variable 1 optional?
As far as I am aware, just don't pass the variables to the sub when you call it. So long as you don't use this variable within it, there shouldn't be any problems. :)