Click here to Skip to main content
15,895,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
PIEBALDconsult20-Jun-14 14:18
mvePIEBALDconsult20-Jun-14 14:18 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
Sander Rossel20-Jun-14 23:32
professionalSander Rossel20-Jun-14 23:32 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
PIEBALDconsult21-Jun-14 3:51
mvePIEBALDconsult21-Jun-14 3:51 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
Sander Rossel21-Jun-14 3:56
professionalSander Rossel21-Jun-14 3:56 
GeneralChrome on Ubuntu Pin
JMK-NI20-Jun-14 11:03
professionalJMK-NI20-Jun-14 11:03 
QuestionRe: Chrome on Ubuntu Pin
Eddy Vluggen20-Jun-14 11:17
professionalEddy Vluggen20-Jun-14 11:17 
GeneralRe: Chrome on Ubuntu Pin
WuRunZhe22-Jun-14 0:01
WuRunZhe22-Jun-14 0:01 
GeneralThis is a programming question Pin
PIEBALDconsult20-Jun-14 10:23
mvePIEBALDconsult20-Jun-14 10:23 
Well, almost a programming question; it concerns VB. Big Grin | :-D But it's really just for a bit of procrastination and VB-bashing on a Friday afternoon.

Usually (in C#), when I want to log an Exception with its InnerException(s), I use a while loop:

while ( exception != null )
{
  ...

  exception = exception.InnerException ;
}


But today* I decided to try a for loop instead:

for ( System.Exception exc = exception.InnerException ; exc != null ; exc = exc.InnerException )
{ 
  ... 
}


Which, of course works quite well. But VB doesn't support that construct, does it? So you're stuck using a while loop?

Jig | [Dance] Suckers! Jig | [Dance]


* Yesterday I wrote it with recursion. Laugh | :laugh:
You'll never get very far if all you do is follow instructions.

GeneralRe: This is a programming question Pin
JMK-NI20-Jun-14 10:35
professionalJMK-NI20-Jun-14 10:35 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 11:18
mvePIEBALDconsult20-Jun-14 11:18 
GeneralRe: This is a programming question Pin
NeverJustHere20-Jun-14 10:42
NeverJustHere20-Jun-14 10:42 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 11:17
mvePIEBALDconsult20-Jun-14 11:17 
GeneralRe: This is a programming question Pin
Marc Clifton21-Jun-14 6:04
mvaMarc Clifton21-Jun-14 6:04 
GeneralRe: This is a programming question Pin
Eddy Vluggen20-Jun-14 10:48
professionalEddy Vluggen20-Jun-14 10:48 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 11:07
mvePIEBALDconsult20-Jun-14 11:07 
GeneralRe: This is a programming question Pin
Eddy Vluggen20-Jun-14 11:19
professionalEddy Vluggen20-Jun-14 11:19 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 11:34
mvePIEBALDconsult20-Jun-14 11:34 
GeneralRe: This is a programming question Pin
Tim Carmichael20-Jun-14 15:17
Tim Carmichael20-Jun-14 15:17 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 15:45
mvePIEBALDconsult20-Jun-14 15:45 
AnswerRe: This is a programming question Pin
Super Lloyd20-Jun-14 16:01
Super Lloyd20-Jun-14 16:01 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 16:05
mvePIEBALDconsult20-Jun-14 16:05 
AnswerRe: This is a programming question Pin
Super Lloyd20-Jun-14 17:28
Super Lloyd20-Jun-14 17:28 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 17:42
mvePIEBALDconsult20-Jun-14 17:42 
GeneralRe: This is a programming question Pin
Super Lloyd20-Jun-14 17:58
Super Lloyd20-Jun-14 17:58 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 18:01
mvePIEBALDconsult20-Jun-14 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.