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