Hi Olaf, cDynFactory works very well now. Thank you so much.
I still have a few questions:
(1) Is it possible to implement dynamic properties names containing spaces or special characters (similar to keywords in cCollection), for example:
(2) Is it possible to associate cDynFactory with cCollection so that the dynamic properties of cDynFactory are like keywords of cCollection.Code:Dim oD As Object Set oD = DynFactory.NewDynObj oD ["AA BB"] = "123456" 'Or' Set oD ["AA BB"] = New Class1
(3) Is there a limit to the number of dynamic properties of cDynFactory? Can cDynFactory have as many dynamic properties as cCollection?
(4) If cDynFactory is heavily used, does cDynFactory occupy more or less memory than cCollection? Thanks.




Reply With Quote