Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 870135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:25:12+00:00 2026-05-15T10:25:12+00:00

I just had this throw a compilation error while refactoring some legacy (hence VB.NET)

  • 0

I just had this throw a compilation error while refactoring some legacy (hence VB.NET) unit tests, where I wanted to just comment out one of the sample inputs to MBUnit:

<RowTest> _
'<Row("Something")> _
<Row("SomethingElse")> _

Which gave:

Attribute specifier is not a complete statement. Use a line continuation to apply the 
attribute to the following statement.

Is it actually treating the whitespace/commented-out line as an actual line? Generally, when I gripe about VB.NET, I preface it with, “Now, I wouldn’t want to be the guy writing their grammar, but…” This seems like one of those cases where I don’t know the answer, if I’m right. But I do know want to know the answer, in this case.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:25:12+00:00Added an answer on May 15, 2026 at 10:25 am

    Yes, as far as I understand it, the problem is that your first line continuation adds the commented out line as part of the first line, and then the line continuation character on the commented out line is ignored since it’s part of a comment so it ends up being:

    <RowTest> '<Row("Something")> _  <-- this line continuation character is ignored since it's commented out.
    <Row("SomethingElse")> _
    

    What would be needed to support this would be a way to end a comment other than a newline, but as it’s usually not a problem and I think it would affect the compiling speed etc quite a bit since it would make it have to parse all comments I suppose it’s not seen as worthwhile.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so yesterday I had some trouble with this error, turned out I just
I was just reading this article and it mentions that some organization had an
Seems like just yesterday I had this same problem with Play! v1. After trying
I thought I had this figured out but it turns out I'm just deleting
Hey This is my login script, using PHP5 and MYSQLi, I just had help
So just this week I had the opportunity to re-build my development machine and
Just wondering if you had any thoughts on this problem. I want to make
I had assume I could just do this, but I don't have a way
I just got this question on an interview and had no idea how to
I just added this to my web.xml on my JBOSS server. But it had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.