Declaration
Element |
Description |
---|---|
Const statement |
Declares a constant |
Class...End Class statement |
Defines a class |
Declare statement |
Defines a prototype for a call to an external DLL library function |
Dim statement |
Declares a variable |
Enum statement |
Defines a series of constants as an enumerated type |
Function statement |
Defines a function |
Friend keyword |
Makes a procedure in a class callable from outside the class but within the project in which the class is defined |
Option Explicit statement |
Requires declaration of all variables |
Private statement |
Declares a local variable |
Property statement |
Defines a property |
Protected statement |
Declares a protected class member |
Public statement |
Declares a public or global variable |
Static statement |
Declares a static variable |
Structure...End Structure statement |
Declares a structure or user-defined type |
Sub statement |
Declares a subroutine |
Get VB.NET Language in a Nutshell, Second Edition 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.