Name
Property Get Statement
Syntax
[Public [Default] | Private Property Getname[(arglist)] [statements] [name=expression] [Exit Property] [statements] [name=expression] End Property
PublicUse: Optional
Type: Keyword
Makes the property accessible from outside the class, giving it visibility through all procedures in all scripts.
PublicandPrivateare mutually exclusive.DefaultUse: Optional
Type: Keyword
Used only with the
Publickeyword to indicate that a public property is the default property of the class.PrivateUse: Optional
Type: Keyword
Restricts the visibility of the property to those procedures within the same
Class...End Classcode block.PublicandPrivateare mutually exclusive.nameUse: Required
The name of the property.
arglistUse: Optional
Data Type: Any
A comma-delimited list of variables to be passed to the property as arguments from the calling procedure.
statementsUse: Optional
Program code to be executed within the property.
expressionUse: Optional
Variant Type: Any
The value to return from the property to the calling procedure.
arglisthas the following syntax:[ByVal | ByRef]
argname[( )]ByValUse: Optional
The argument is passed by value; that is, a local copy of the variable is assigned the value of the argument.
ByRefUse: Optional
The argument is passed by reference; that is, the local variable is simply a reference to the argument being passed. Changes made to the local variable are reflected in the argument.
ByRefis the default way of passing variables.argnameUse: Required ...