Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that assigns (sets) the value of a property.
|
---|
[Public | Private] Property Letname([arglist,] value)
[statements]
[Exit Property]
[statements]
End Property |
Arguments
- Public
Indicates that the Property Let procedure is accessible to all other procedures in all scripts.
- Private
Indicates that the Property Let procedure is accessible only to other procedures in the Class block where it's declared.
- name
Name of the Property Let procedure; follows standard variable naming conventions, except that the name can be the same as a Property Get or Property Set procedure in the same Class block.
- arglist
List of variables representing arguments that are passed to the Property Let procedure when it is called. Commas separate multiple arguments. The name of each argument in a Property Let procedure must be the same as the corresponding argument in a Property Get procedure. In addition, the Property Let procedure will always have one more argument than its corresponding Property Get procedure. That argument is the value being assigned to the property.
- value
Variable to contain the value to be assigned to the property. When the procedure is called, this argument appears on the right side of the calling expression.
- statements
Any group of statements to be executed within the body of the Property Let procedure.
Remarks
Requirements
See Also