Identifiers, Literals, Keywords, and Whitespace

Now that you have seen what a Visual Basic program looks like, you can define some of the fundamental language components.

An identifier is what is commonly referred to as a name in programming. It can be the name of a project, module, variable, object, method, and so on. You have seen some identifiers; you will see much more as you go along. An identifier in Visual Basic must conform to some naming rules: it must start with a letter and it must not contain any other symbol than letters, digits and the _ (underscore) character. Valid identifier names are Module1, Main, x, bFound, m_name, and NUMBER_PI. Any identifier that violates these rules is not valid and the IDE and then the compiler will signal ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.