Creating Sub Properties in ActiveX Control
-
Is ther any one can tell me that how to creat a sub property in ActiveX control, like A recordset has sub properties and the TableDef has an array or properties and same with the fields. I will obviously thankfull to you. sameers sameers@hangamahouse.com
-
Is ther any one can tell me that how to creat a sub property in ActiveX control, like A recordset has sub properties and the TableDef has an array or properties and same with the fields. I will obviously thankfull to you. sameers sameers@hangamahouse.com
i think you mean something like this in class, MyActiveXControl
Private m_sStringProperty as String ... Public Property Get MyStringProperty() as String MyStringProperty = m_sStringProperty End Property Public Property Let MyStringProperty(sSP as String) ' Validate if you want m_sStringProperty = MyStringProperty End Property
You can also use 'Public Property Set' to have an object be a property and you can use Private to make your property read/write only as well. James Johnson -- There are two secrets to success. 1) Never tell anyone everything you know.