Create Enum programmatically? 
Author Message
 Create Enum programmatically?

Is it possible to Create a Enum programmatically using Class Name under a
specific Namespace?

What I intend to do is this.

I want to create a function which accept the name of my objects under
MyNamespace.  Like:

Function MyFunc(ByVal strObjName as MyEnum) As String
  .......

-- MyEnum is an Enum that I create.
I want to create an the MyEnum without me adding the value in everytime I create
a new Class under MyNamespace.

How could that be done?

Thanks.
Joshua



Thu, 29 May 2003 12:23:14 GMT  
 Create Enum programmatically?
Exactly what do you want to accomplish?

--
Jonathan Allen


Is it possible to Create a Enum programmatically using Class Name under a
specific Namespace?

What I intend to do is this.

I want to create a function which accept the name of my objects under
MyNamespace.  Like:

Function MyFunc(ByVal strObjName as MyEnum) As String
  .......

-- MyEnum is an Enum that I create.
I want to create an the MyEnum without me adding the value in everytime I
create
a new Class under MyNamespace.

How could that be done?

Thanks.
Joshua



Thu, 29 May 2003 12:15:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Retrive Enum Value if I have Enum Constant Name as a String

2. Programmatically creating controls from a field list

3. Creating fields programmatically

4. how to programmatically create linked table w/o access

5. Creating Forms Programmatically

6. Programmatically create a new module

7. Creating and deleting referential table links programmatically

8. Programmatically create .mde?

9. Programmatically Create new Access application ?

10. How do I programmatically create a linked FoxPro table

11. Creating a combo box Programmatically on a table

12. Creating, modifying, deleting tables programmatically.

 

 
Powered by phpBB® Forum Software