• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 829
  • Last Modified:

Named argument expected ?

I am getting a compiler error of "Named argument expected" for:

Set(ByVal Value As V.Settings)
           Main.set(co:=(Co), Value)
           RaiseEvent Change()
End Set

The second argument of Main.set is a ByVal pVal.
What is my error ?
0
pillmill
Asked:
pillmill
1 Solution
 
Bob LearnedCommented:
If you use a named argument for the first argument, you need to specify them for all the rest:

Main.set(co:=Co, value:=Value)

Bob
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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