Click to See Complete Forum and Search --> : UDT in Class


Perry
October 7th, 1999, 08:52 AM
I want to have an activex dll that fills a complex UDT(user defined type). I want to be able to access any element of that UDT without creating a duplicate of the entire structure each time I access eg:

Type ClientsDetail
Name as string
Description as string
End Type
Type MainClientType
Count as Integer
Client() as ClientType
End Type
Dim MyClients as MainClientType



I want this structure to be loaded into the DLL and be able to access any element of the structure from outside of the DLL with this type of syntax:

MainClients.Client(5).Name without creating a duplicate of the DLL's structure. I would also like to be able to create a new object of that class and clone its structure from another one.