How to rename a class in VbClassic:
Doing the RenameClass refactoring involves more than just a global search and replace when you're using VbClassic:
Here's a quick and easy way to do it:
This will probably work better, in the presence of labels and other advanced usage, than renaming. Few source code control products are very good at handling rename operations. OTOH, it may be a little more difficult to see the history of changes to a given class.
Oops, good point.
Here's a slightly more complex but more "air tight" way to do it -- particularly if your VersionControl software supports "rename" operations:
But the file name for the class no longer matches its class name. When checking in your changes, a good approach is...
VbClassic will become confused when you check out files in the middle of a project-wide search: It will report that you've found all instances, when you really haven't. So, you'll either have to do another round of searching, or rely on another method, such as bookmarks or open windows to keep track of what files need to be checked out.
A similar process can be used to rename projects, when project group files are being used.
In the instructions above, I've documented the "safe, sane, rational" way to do it. To be honest, I normally open the project file in Notepad or VIM and edit it by hand. -- JeffGrigg