T O P I C R E V I E W |
RoSe |
Posted - Jun 25 2008 : 09:40:33 AM 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? |
3 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Mar 30 2009 : 11:27:14 AM 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. |
ananthasrinivasan |
Posted - Mar 30 2009 : 10:41:57 AM 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
|
feline |
Posted - Jun 25 2008 : 11:30:09 AM 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. |