|
-
July 3rd, 2007, 11:23 AM
#3
Re: Is it legal VB to return a collection as a property from a class?
 Originally Posted by WoF
I think you must use the Set directive to assign a collection
Try this:
Code:
Property Get getAllTestNames() As Collection
Set getAllTestNames = colAlltests
End Property
...
Sub CreateLabReport()
Dim filereader As New clsReadTextFile
Dim AllTestNames As Collection
Set AllTestNames = filereader.getAllTestNames() ' this line causes error msg
end sub
Seems to work for me...
It works for me too- thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|