Re: 'Resetting' a collection with new members .. Is this correct?
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 20:35:02 -0600
"Ronald Raygun" <invalid@xxxxxxxxxx> wrote
Private Property Let ResetCollection(info() As clsInfo)
Others already addressed the behaviour (For Each would be my
suggestion as well) but I thought I would focus your attention to
the syntax you are creating.
Resetting your collection is a task, a job you want accomplished
when called. It would not do well as a property. A property is
a value, a state the computer is currently in. The syntax you create
by making it a property is of the form:
MyInfo.ResetCollection = NewInfo
Making it a property could lead some to (possibly) assume there are
multiple collections in effect here. The initial collection the class supports
and this ResetCollection which is assigned as shown above.
If it were up to me, I'd say ResetCollection needs to be a Sub.
LFS
.
- References:
- 'Resetting' a collection with new members .. Is this correct?
- From: Ronald Raygun
- 'Resetting' a collection with new members .. Is this correct?
- Prev by Date: Re: Blank Date display problem
- Next by Date: Re: Blank Date display problem
- Previous by thread: Re: 'Resetting' a collection with new members .. Is this correct?
- Next by thread: Re: Blank Date display problem
- Index(es):
Relevant Pages
|