Name
Property Let Statement
Syntax
[Public | Private Property Letname([arglist,]value) [statements] [Exit Property] [statements] End Property
PublicUse: Optional
Type: Keyword
Makes the property visible outside of the class, giving it visibility through all procedures in all scripts.
PublicandPrivateare mutually exclusive.PrivateUse: Optional
Type: Keyword
Restricts the visibility of the property to those procedures within the same
Class...EndClasscode block.PrivateandPublicare 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.
valueUse: Required
Data Type: Any
The last (or only) argument in
arglist; a variable containing the value to be assigned to the property.statementsUse: Optional
Program code to be executed within the property.
arglistuses the following syntax:[ByVal | ByRef]
varname[( )]ByValUse: Optional
Type: Keyword
The argument is passed by value; that is, a local copy of the variable is assigned the value of the argument.
ByRefUse: Optional
Type: Keyword
The argument is passed by reference; that is, the local variable is simply a reference to the argument being passed. All changes made to the local variable are reflected in the calling argument when control returns to the calling procedure.
ByRefis the default method of passing variables.varnameUse: Required
The name of the local variable containing either the reference or ...