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
 Extract Method in VB
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RoSe
Junior Member

15 Posts

Posted - Jun 25 2008 :  09:40:33 AM  Show Profile  Reply with Quote
Hi,
I'm using VS2005 an Visual Basic. As I understand from the documetation I should be able to mark a certain block of code and get the option to extract it as a new method. Missing variables will be used as parameters for the method. I thried several different peaces of code but I was never able to extract a new method. The option "extractMethod" is always grey, not available.
e.g.
...
For vP = 0 To 4
vData(vP) = 2
Next
For vI = 1 To vCount
mFaCan.SendMessage(vCanMessage)
Next
vTimer.Wait(1000)

For vP = 0 To 4
vData(vP) = 3
Next
For vI = 1 To vCount
mICan.SendMessage(vCanMessage)
Next
vTimer.Wait(1000)

...
I wanna cut the two loops and the wait ... why isn't that possible?

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Jun 25 2008 :  11:30:09 AM  Show Profile  Reply with Quote
Unfortunately Extract Method dies not currently work in VB. We are looking into this, but I do not have any estimate on when this will be fixed:

case=4089

The other refactoring commands should work correctly in VB.

zen is the art of being at one with the two'ness
Go to Top of Page

ananthasrinivasan
Starting Member

1 Posts

Posted - Mar 30 2009 :  10:41:57 AM  Show Profile  Reply with Quote
hi,

case=4089
Extract method not working in vb code.
I tried the latest build trial version. Still greyed out.

Is this now available in any other builds for vb ?

If not, when is the expected release date for it ?

please reply asap
thx
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Mar 30 2009 :  11:27:14 AM  Show Profile  Reply with Quote
This has not yet been fixed, but it is on our list of things to address. Unfortunately I don't currently have an estimate on when this will be done.

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