Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Move local variable to class member

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
ahkow Posted - Aug 08 2010 : 04:32:55 AM
Is there any way to move/convert a local variable to class member?
Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 08 2010 : 5:44:54 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000