The VBScript Network and Systems Administrator's Cafe

Sep 19 2008   7:50PM GMT

VBScript Statements: Explanation of the Property Set Statement

Jerry Lees Jerry Lees Profile: Jerry Lees

Within a VBScript class the Property block allows you to set the value of the property in the class. This statement works in conjunction with the Property Let and Property Get statements and can only be used inside a class inside VBScript– and no where else in the script.

This would in turn be called in VBScript in your function after you create an instance of the class like so:

InstanceOfClass.PropertyName.Set (args)

 By default the Property Set statement is public but you can declare it to be private if you need to do so. Since this statement is used in a block, it is required that you end the block with the End Property statement. The block of code will look something like this:

Property Set PropertyName

 ‘ Property setting code goes here

End Property

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: