Click here to Skip to main content
11,495,724 members (56,073 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! [modified] Pin
PIEBALDconsult20-Jun-14 15:18
memberPIEBALDconsult20-Jun-14 15:18 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
Sander Rossel21-Jun-14 0:32
professionalSander Rossel21-Jun-14 0:32 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
PIEBALDconsult21-Jun-14 4:51
memberPIEBALDconsult21-Jun-14 4:51 
GeneralRe: Optical Illusion Music Vid. Pretty Cool! Pin
Sander Rossel21-Jun-14 4:56
professionalSander Rossel21-Jun-14 4:56 
GeneralChrome on Ubuntu Pin
HomerTheGreat20-Jun-14 12:03
memberHomerTheGreat20-Jun-14 12:03 
QuestionRe: Chrome on Ubuntu Pin
Eddy Vluggen20-Jun-14 12:17
professionalEddy Vluggen20-Jun-14 12:17 
GeneralRe: Chrome on Ubuntu Pin
WuRunZhe22-Jun-14 1:01
memberWuRunZhe22-Jun-14 1:01 
GeneralThis is a programming question Pin
PIEBALDconsult20-Jun-14 11:23
memberPIEBALDconsult20-Jun-14 11: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
HomerTheGreat20-Jun-14 11:35
memberHomerTheGreat20-Jun-14 11:35 
GeneralRe: This is a programming question [modified] Pin
PIEBALDconsult20-Jun-14 12:18
memberPIEBALDconsult20-Jun-14 12:18 
GeneralRe: This is a programming question Pin
NeverJustHere20-Jun-14 11:42
memberNeverJustHere20-Jun-14 11:42 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 12:17
memberPIEBALDconsult20-Jun-14 12:17 
GeneralRe: This is a programming question Pin
Marc Clifton21-Jun-14 7:04
protectorMarc Clifton21-Jun-14 7:04 
GeneralRe: This is a programming question Pin
Eddy Vluggen20-Jun-14 11:48
professionalEddy Vluggen20-Jun-14 11:48 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 12:07
memberPIEBALDconsult20-Jun-14 12:07 
GeneralRe: This is a programming question Pin
Eddy Vluggen20-Jun-14 12:19
professionalEddy Vluggen20-Jun-14 12:19 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 12:34
memberPIEBALDconsult20-Jun-14 12:34 
GeneralRe: This is a programming question Pin
Tim Carmichael20-Jun-14 16:17
memberTim Carmichael20-Jun-14 16:17 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 16:45
memberPIEBALDconsult20-Jun-14 16:45 
AnswerRe: This is a programming question Pin
Super Lloyd20-Jun-14 17:01
memberSuper Lloyd20-Jun-14 17:01 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 17:05
memberPIEBALDconsult20-Jun-14 17:05 
AnswerRe: This is a programming question Pin
Super Lloyd20-Jun-14 18:28
memberSuper Lloyd20-Jun-14 18:28 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 18:42
memberPIEBALDconsult20-Jun-14 18:42 
GeneralRe: This is a programming question Pin
Super Lloyd20-Jun-14 18:58
memberSuper Lloyd20-Jun-14 18:58 
GeneralRe: This is a programming question Pin
PIEBALDconsult20-Jun-14 19:01
memberPIEBALDconsult20-Jun-14 19:01 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 30 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid