Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

Parameters

Hi. I want to know how to pass some parameters between functions and subs but not all that I write after the sub or function.
Example.
sub passArray(byref values as variant, method as integer)

Imagine that when I call this sub, I don't want to pass the method or the values. How to do ?
0
netkuk
Asked:
netkuk
1 Solution
 
vmanoCommented:
decalre your sub like this:
sub passArray(optional values as variant,optional method as integer)
then you don't need to pass those values.
0
 
netkukAuthor Commented:
Thank you.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now