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
 Move local variable to class member
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahkow
Senior Member

33 Posts

Posted - Aug 08 2010 :  04:32:55 AM  Show Profile  Reply with Quote
Is there any way to move/convert a local variable to class member?
Thanks.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 08 2010 :  5:44:54 PM  Show Profile  Reply with Quote
We don't have such a feature currently, but are considering adding it at some point:

case=43947

The closest feature we have is "Create from usage" which can create a member variable from a not defined one, trying to guest its type, for example:

int Class1::GetSomeInt()
{
    return 5;
}
void Class1::SomeFunction()
{
    Apple = GetSomeInt();
}

Using "Create from usage" on Apple will offer to create "int Apple" to Class1 but you can always change the offered type in the showed dialog.
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