Property Let Statement

Call Statement,Class Statement,Const Statement,Dim Statement,Do...Loop Statement,Erase Statement,Execute Statement,ExecuteGlobal Statement,Exit Statement,For...Next Statement,Function Statement,If...Then...Else Statement,On Error Statement,Option Explicit Statement,Private Statement,Property Get Statement,Property Let Statement,Property Set Statement,Public Statement,Randomize Statement,ReDim Statement,Rem Statement,Select Case Statement,Set Statement,Sub Statement,While...Wend Statement,With Statement Home home | Other Resources other resources | Advertise with us advertise | Link to us link to us | Contact us contact | Bookmark Us!
Google
 
Where can I find good Windows Web Hosting to host my VBScript Site?
You can find good Windows Hosting which support VBScript, ASP, ASP.Net,VisualStudio.Net and MSSQL at a very reasonable low monthly fee at EasyCGI.com and DiscountASP.Net

Property Let Statement

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 Let name ([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. Multiple arguments are separated by commas. 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.

Note   Every Property Let statement must define at least one argument for the procedure it defines. That argument (or the last argument if there is more than one) contains the actual value to be assigned to the property when the procedure defined by the Property Let statement is invoked. That argument is referred to as value in the preceding syntax.

Remarks

If not explicitly specified using either Public or Private, Property Let procedures are public by default, that is, they are visible to all other procedures in your script. The value of local variables in a Property Let procedure is not preserved between calls to the procedure.

You can't define a Property Let procedure inside any other procedure (e.g. Function or Property Get).

The Exit Property statement causes an immediate exit from a Property Let procedure. Program execution continues with the statement that follows the statement that called the Property Let procedure. Any number of Exit Property statements can appear anywhere in a Property Let procedure.

Like a Function and Property Get procedure, a Property Let procedure is a separate procedure that can take arguments, perform a series of statements, and change the value of its arguments. However, unlike a Function and Property Get procedure, both of which return a value, you can only use a Property Let procedure on the left side of a property assignment expression.


VBScriptOnline.com - Call Statement,Class Statement,Const Statement,Dim Statement,Do...Loop Statement,Erase Statement,Execute Statement,ExecuteGlobal Statement,Exit Statement,For...Next Statement,Function Statement,If...Then...Else Statement,On Error Statement,Option Explicit Statement,Private Statement,Property Get Statement,Property Let Statement,Property Set Statement,Public Statement,Randomize Statement,ReDim Statement,Rem Statement,Select Case Statement,Set Statement,Sub Statement,While...Wend Statement,With Statement