Where do I enter a promotional code on national express?

Visual Basic Express 2010 organization/new lines Beginner Question?

  • In Visual Basic Express 2010 when I'm writing in View Code, sometimes my code gets very long and would require the reader to scroll over far using the horizontal scroll bar to see the rest. Now that is horrible so I'd like to put some code on the next line below... I thought it was as simple as press enter on the keyboard while writing code, but if I do that I get: Error 1 'Else' must be preceded by a matching 'If' or 'ElseIf'. Was there another button I was supposed to press to get to the next line? My instructor always said to end a IF statement with an EndIf, but I get a code error putting that in on a line below as well... Am I getting these errors because I'm using the Express instead of Professional? Or am I forgeting something?

  • Answer:

    Use a _ at the end of a line to indicate the statement continues onto the next line. http://msdn.microsoft.com/en-us/library/aa711641%28v=vs.71%29.aspx It's not a Pro/Express thing. The Basic language is line-oriented, originally one statement to a line, but you can put multiple statements on a line, separating them with colons (:) in Microsoft versions of Basic. A comment goes all the way to the end of the line, by the way, including any _ or : characters that might be there, so you can't continue a comment or have another statement after it on the same line.

Wyatt at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.