Original Post
Hi, i was working around with collection and had a hard time findin what is my problem
I have a Class clsPiece, in this class i have a Collection of clsSegments
When I do :
Dim Piece As New clsPiece
Dim myNewSegment as new clsSegment
Piece.Segments.Add myNewSegment <-- here''s the problem
it doesnt want only the new Segment, it wants parameters for evrything that a segment is... i would like to be able to pass just an object of type clsSegment and not the parameters of a new clsSegment
the Segment structure is shown below
Private mcolVectors As Vectors
Private mcolLitVertexes As LitVertexes
Private mcolOriginVectors As OriginVectors
Private mcolCells As Cells
So a segment is an object that has 4 collections in it... is there a way to just initialise all the thing to 0 like vb does so well...
i saw in the msdn help exemples something like that:
Piece.Segments.Add Item:=myNewSegment
first time I see the ":=" operator in VB6 and i tried their exemple and still doesnt work