Named argument expected ?

Posted on 2007-08-01
Last Modified: 2013-11-26
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 ?
Question by:pillmill
    1 Comment
    LVL 96

    Accepted Solution

    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)


    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now