Re: Linked Lists
There does not appear to be an easy way to include parameters when creating an object
Option Explicit Sub test dim c as cNode Set c = new cNode(somestring, someobject) ' Not possible? stop endsub
I discovered during some reading that you can use something called a Factory pattern to do this
set c = new cNode(somestring,someobject) the factory pattern to me at least suggest taking this approach set c = somefunctionname(somestring,someobject)
In that same project, have a module that includes the public fuction. The job of this function is to do all the steps of setting the object as new and initializing the property values.
Function CreatecNode(byval somestring as String, byref someobject as cNode) as cnode