All Statements
Property Get Statement
Property Let Statement
Exit Property Statement
STATEMENT: Property Set
Implemented in version 5.0
Property Set ... End Property
The
Property Set
statement block allows you to perform a procedure that sets a reference to an object.
The
Property Set
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 Let
that, respectively, permit you to return the value of a property and to assign the value of a property.
The
Property Set
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 sets the reference to the object.
There is one mandatory argument. You must give the name of a reference variable to which the value is to be assigned. This same name must be used on the right side of the object reference assignment. (i.e., the name "ReferenceName" is used in the syntax example.)
By default, the
Property Set
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 Set
procedure.
The
End Property
is required.
Syntax:
[
Public
|
Private
]
Property Set
ProcedureName ( [arguments, ..., ...] ReferenceName )
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