Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that gets (returns) the value of a property.
|
---|
[Public [Default] | Private] Property Getname[(arglist)]
[statements]
[[Set] name = expression]
[Exit Property]
[statements]
[[Set] name = expression]
End Property |
Arguments
- Public
Indicates that the Property Get procedure is accessible to all other procedures in all scripts.
- Default
Used only with the Public keyword to indicate that the property defined in the Property Get procedure is the default property for the class.
- Private
Indicates that the Property Get procedure is accessible only to other procedures in the Class block where it's declared.
- name
Name of the Property Get procedure; follows standard variable naming conventions, except that the name can be the same as a Property Let or Property Set procedure in the same Class block.
- arglist
List of variables representing arguments that are passed to the Property Get procedure when it is called. Commas separate multiple arguments. The name of each argument in a Property Get procedure must be the same as the corresponding argument in a Property Let procedure (if one exists).
- statements
Any group of statements to be executed within the body of the Property Get procedure.
- Set
Keyword used when assigning an object as the return value of a Property Get procedure.
- expression
Return value of the Property Get procedure.
Remarks
Requirements
See Also