Click here to Skip to main content
15,901,283 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: Style question Pin
Jeremy Falcon20-Aug-14 8:59
professionalJeremy Falcon20-Aug-14 8:59 
AnswerRe: Style question Pin
Afzaal Ahmad Zeeshan20-Aug-14 9:09
professionalAfzaal Ahmad Zeeshan20-Aug-14 9:09 
GeneralRe: Style question Pin
Manfred Rudolf Bihy20-Aug-14 9:10
professionalManfred Rudolf Bihy20-Aug-14 9:10 
GeneralRe: Style question Pin
Ravi Bhavnani20-Aug-14 9:10
professionalRavi Bhavnani20-Aug-14 9:10 
GeneralRe: Style question Pin
PIEBALDconsult20-Aug-14 9:13
mvePIEBALDconsult20-Aug-14 9:13 
GeneralRe: Style question Pin
Mike Hankey20-Aug-14 9:17
mveMike Hankey20-Aug-14 9:17 
GeneralRe: Style question Pin
JMK-NI20-Aug-14 9:28
professionalJMK-NI20-Aug-14 9:28 
GeneralRe: Style question Pin
Tim Carmichael20-Aug-14 9:41
Tim Carmichael20-Aug-14 9:41 
Holy crap on a cracker... ask a simple question...

I know what a function is and what a procedure is and how they are used.

I started with a procedure: GetSettings and passed in a number of local variables.

But, then I thought, a procedure shouldn't be returning values, that is what a function does.
However, there is more than one value to return (currently 6), so I decided to use a stucture and have the function return a single structure with values in each element.

The series of data is: source directory for file to be processed, from e-mail address, to e-mail address, SMTP server, report type (row or column based), single e-mail or an e-mail per file processed.

Now, having been on here for some time, I have seen flame wars on style: what should a procedure to, what should a function do, blah, blah, blah....

So, simple question of style and maintainability...
AnswerRe: Style question Pin
Ravi Bhavnani20-Aug-14 9:56
professionalRavi Bhavnani20-Aug-14 9:56 
GeneralRe: Style question Pin
Maximilien20-Aug-14 9:58
Maximilien20-Aug-14 9:58 
GeneralRe: Style question Pin
Tim Carmichael20-Aug-14 10:04
Tim Carmichael20-Aug-14 10:04 
GeneralRe: Style question Pin
StatementTerminator20-Aug-14 10:28
StatementTerminator20-Aug-14 10:28 
GeneralRe: Style question Pin
Jeremy Falcon20-Aug-14 11:17
professionalJeremy Falcon20-Aug-14 11:17 
GeneralRe: Style question Pin
_Maxxx_20-Aug-14 13:17
professional_Maxxx_20-Aug-14 13:17 
GeneralRe: Style question Pin
patbob21-Aug-14 5:34
patbob21-Aug-14 5:34 
GeneralRe: Style question PinPopular
Slacker00720-Aug-14 13:13
professionalSlacker00720-Aug-14 13:13 
GeneralRe: Style question Pin
User 1013254620-Aug-14 22:38
User 1013254620-Aug-14 22:38 
GeneralRe: Style question Pin
Mark_Wallace20-Aug-14 21:37
Mark_Wallace20-Aug-14 21:37 
GeneralRe: Style question Pin
Simon O'Riordan from UK21-Aug-14 0:55
Simon O'Riordan from UK21-Aug-14 0:55 
GeneralRe: Style question Pin
MartinSmith7421-Aug-14 10:35
MartinSmith7421-Aug-14 10:35 
GeneralRe: Style question Pin
Gerry Schmitz21-Aug-14 11:29
mveGerry Schmitz21-Aug-14 11:29 
GeneralBetter update your gender-enum; Facebook's 71 gender options Pin
Eddy Vluggen20-Aug-14 8:42
professionalEddy Vluggen20-Aug-14 8:42 
GeneralRe: Better update your gender-enum; Facebook's 71 gender options Pin
PIEBALDconsult20-Aug-14 8:47
mvePIEBALDconsult20-Aug-14 8:47 
GeneralRe: Better update your gender-enum; Facebook's 71 gender options Pin
OriginalGriff20-Aug-14 8:58
mveOriginalGriff20-Aug-14 8:58 
GeneralRe: Better update your gender-enum; Facebook's 71 gender options Pin
Jeremy Falcon20-Aug-14 9:00
professionalJeremy Falcon20-Aug-14 9:00 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   504 votes