Sub Property in Class module 
Author Message
 Sub Property in Class module

I am using a class module with several properties.  On some of the
properties it would be nice to be able to have a 'sub property'  For example
like the properties in a recordset:
RecSet.fields(0).name
Where name is the sub property.  Is it possible to do this in my class
module?  If so, how?


OR



Sat, 29 Nov 2003 09:01:23 GMT  
 Sub Property in Class module

Quote:
> I am using a class module with several properties.  On some of the
> properties it would be nice to be able to have a 'sub property'  For example
> like the properties in a recordset:
> RecSet.fields(0).name
> Where name is the sub property.  Is it possible to do this in my class
> module?  If so, how?

Use more then one class module.  Define your "sub-class"
first, then, when building the top level class, declare
one or mor of the properties to be of Class "whatever-
subclass-you-created".  Then, when accessing rhe properties,
you should see the properties of the sub-class whenever
you access that property.


:)      the Christian Privateer     :) Company: ppse.org
:)          aka Jack Voltz          :) Home page: ppse.org/me
:)   M  A  R  A  N  A  T  H  A  !   :) Prolife: ppse.org/prolife
:) S i e m p r e  P o r   V i d a ! :) Music: ppse.org/music
;)       Pour la Vie, toujours !    :)
;)         Sempre per la Vita!      :)  
;)          Semper Pro Vita!        :)
;)  A L W A Y S   P R O   L I F E ! :)



Sat, 06 Dec 2003 00:16:06 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Form, module, class and sub or function names at runtime

2. Reasons why I cannot create a public sub write in a class module

3. How to call a sub defined in DLL module not belong to any class

4. Class modules 97 - Refering to array within a custom class module

5. Accessing procedures of a class module from another class module

6. Retrieve name of Function, Sub, Class, Property etc from within that item during runtime

7. Class Module Default Property

8. Class module Properties collection

9. Class Module Properties

10. Class Modules: Property Get or Function ???

11. Setting Property value in class module

12. Flags property in class module

 

 
Powered by phpBB® Forum Software