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?