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
 Feature Requests
 Changing underscore member to this->member
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

derhexer
New Member

Germany
3 Posts

Posted - May 10 2015 :  11:14:21 AM  Show Profile  Reply with Quote
Hi,

is there any way to change a member of a class like:
public String _Name;

into
public String Name;

with automatically changing the whole class code from _Name to this.Name?

Thx a lot
derhexer


Edited by - derhexer on May 11 2015 12:58:11 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 11 2015 :  08:11:46 AM  Show Profile  Reply with Quote
quote:
with automatically changing the whole class code from _Name to this.Name?


Do you mean to change every reference to this.Name?

If so, you can do this easily with a little trick. First, rename the variable from _Name to this.Name using VA Rename. After that, just delete the "this." part from the declaration line.
Go to Top of Page

derhexer
New Member

Germany
3 Posts

Posted - May 12 2015 :  01:00:38 AM  Show Profile  Reply with Quote
Hi accord,

why is it so easy?! I'm so stupid...

Thx a lot
derhexer
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