Procedure Attributes

When declaring class properties and procedures, you can set a number of attributes that modify the procedure's behavior. These attributes are declared on the same line as the property or procedure declaration. The following examples demonstrate the possible declarations:

[Public

Private

Friend]

[Static]

Sub name

[( arglist)]

[Public

Private

Friend]

[Static]

Function

name [( arglist)] [As

type]

[Public

Private

Friend]

[Static]

Property

Get name [( arglist)]

[As type]

[Public

Private

Friend]

[Static]

Property

Let name ([ arglist,]

value)

[Public

Private

Friend]

[Static]

Property

Set name ([ arglist,]

reference)

Since we can safely assume you know about Public and Private attributes by now, the following sections focus on describing the Friend and Static attributes.

0 0

Post a comment