All Statements
Property Get Statement
Property Set Statement
Exit Property Statement
STATEMENT: Property Let
Implemented in version 5.0
Property Let ... End Property
The
Property Let
statement block allows you to perform a procedure that assigns the value of a property.
The
Property Let
statement block can only be used inside a
Class
statement block and cannot be used inside of any other procedure. There are two other related statements that also can only be used within a
Class
block,
Property Get
and
Property Set
that, respectively, permit you to return the value of a property and to set a reference to an object.
The
Property Let
statement allows you to declare the name of the procedure, to accept and change the values of optional arguments, and to perform a series of statements that ultimately assign the value of the property.
There is one mandatory argument. You must give the name of a variable to which the value is to be assigned. This same name must also appear on the right side of the calling expression. (i.e., the name "VariableName" is used in the syntax example.)
By default, the
Property Let
procedure is
Public
, but you can declare it to be
Private
. You can use the optional
Exit Property
statement to immediately exit the from inside the
Property Let
procedure.
The
End Property
is required.
Syntax:
[
Public
|
Private
]
Property Get
ProcedureName ( [arguments, ..., ...] VariableName )
Rem You may place code here
[
Exit Property
]
Rem You may place code here
End Property
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information