Section A.9. Declaration


A.9. Declaration

Element

Description

Const Statement

Declares a constant.

Class...End Class Statement

Defines a class and its members

Custom Event Statement

New in 2005. Declares a custom event with specialized declaration handlers.

Declare Statement

Defines a prototype for a call to an external DLL library procedure.

Dim Statement

Declares a variable.

Enum Statement

Defines a series of constants as an enumerated type.

Flags Attribute

Indicates that an enumeration should be treated as a set of flags.

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.

New Keyword

Creates a new instance of an object.

Nothing Keyword

The value of an undefined object.

Of Keyword

New in 2005. Enables generics on a type or member definition.

Operator Statement

New in 2005. Defines an overloaded operator.

Option Explicit Statement

Requires declaration of all variables.

Partial Keyword

New in 2005. Allows a type to be divided among multiple source code files.

Private Statement

Declares a local variable.

Property Statement

Defines a property.

Protected Keyword

Declares a protected class member.

Public Keyword

Declares a public or global variable.

Shared Keyword

Defines a shared member of a type that does not depend on an instance.

Static Statement

Declares a static variable.

Structure...End Structure Statement

Declares a structure or user-defined type.

Sub Statement

Declares a subroutine.





Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net