>Yes, I was thinking of having a class that could return references to it's own instances of the required classes.
>
>Thanks
>
>Kev
>
I remember someone trying this before (maybe José), and it couldn't be done inside the class. The problem was that returning anything besides .F. from Init(), such as the existing object reference, caused a new object to be created.
You could probably create a Singleton() function that would either return an existing instance (using AInstances()) or create a new one. Then your object creation would look something like:
loMyObject = Singleton("MyClass", "MyClassLibrary")
Not as good as the actual design pattern, but it might work for you.