Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Best Practice Question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pwaugh
Ketchup Master

USA
68 Posts

Posted - Feb 27 2008 :  4:32:18 PM  Show Profile  Reply with Quote
Let's say I have two classes, DinnerParty and BirthdayParty, that I now realize I'd like to refactor common code to a super class Party.

I would just create the new class, and then manually cut & paste, but I'm wondering if VAX can help me in any way to do this.

Patrick

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Feb 28 2008 :  11:05:55 AM  Show Profile  Reply with Quote
I would be tempted to either copy one entire class, and use that as a basis for forming the new base class, or else to use VA Outline to copy specific functions from the existing classes and paste them into the new base class.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000