How to RE-NAME a class module??? 
Author Message
 How to RE-NAME a class module???

In VB6, how do you go about re-naming a Class Module?  I've successfully
renamed the name of the actual '.cls' file which houses my class module,
but I can't find out how to rename it's... well, what do you call it...
you know, the term you use when you're declaring a class, as in

Dim clsClown as ?????????

I want to start using a different term for my class other than the one I
established originally. How do I do it?  Thanks in advance.



Fri, 27 Apr 2001 03:00:00 GMT  
 How to RE-NAME a class module???
Alan,

Just type in the new name on the Properties window.

-Meade

Quote:

>In VB6, how do you go about re-naming a Class Module?  I've successfully
>renamed the name of the actual '.cls' file which houses my class module,
>but I can't find out how to rename it's... well, what do you call it...
>you know, the term you use when you're declaring a class, as in

>Dim clsClown as ?????????

>I want to start using a different term for my class other than the one I
>established originally. How do I do it?  Thanks in advance.



Fri, 27 Apr 2001 03:00:00 GMT  
 How to RE-NAME a class module???

Quote:
> In VB6, how do you go about re-naming a Class Module?

As a previous post said, do it in properties.

*** One important reminder! ****
If you are using the INITIALIZE or TERMINATE events, you must rename them
to match the new name of your class or they will fail to trigger.

Private Sub OldClassName_Initialize
MUST CHANGE THIS TO
Private Sub NewClassName_Initialize
--
Shawn Brock
Speedway SuperAmerica



Sat, 28 Apr 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Returning the name of a module/class module

2. Renaming Class Modules

3. Naming/renaming a module.

4. Fatal Error when renaming the Web service class name

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

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

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

8. Binary compatibility, Public Class, Name conflicts with existing module, project, or object library

9. Enumerate through a Class module function names.

10. Circular Reference Between Modules when 2 Class Modules Listen to Each others Events

11. Class Module and Module

12. Class Modules & Modules

 

 
Powered by phpBB® Forum Software