If one structures the program correctly there is no need for comments like
this as it is obvious. One need those comments only when one cannot see END
statement on the same screen with IF statement (i.e. when the branch is too
long), but this normally indicate the wrong structure. And with proper
indentation it should be obvious which IF the END belongs to.

----- Original Message ----- 
From: "Richard Taylor" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, September 30, 2005 3:55 PM
Subject: RE: [U2] Good Programming Practice Question.........


> I forgot about that one.  I do the same thing with most commands that have
> an THEN-ELSE-END structure.  I add the command to the final end
>
> IF ERROR.STATUS = 1 THEN
>    ...commands...
> END ELSE
>    ...commands...
> END; * if error.status = 1 ...
>
> > Since the RETURN statement actually has 2 meanings, I add a comment at
> the
> > end of the RETURN that concludes a called subroutine, especially if
> there
> > are internal subroutines within it.
> >
> > RETURN ;* TO CALLING PROGRAM
> >
>
> Rich Taylor | Senior Programmer/Analyst| VERTIS
> 250 W. Pratt Street | Baltimore, MD 21201
> P 410.361.8688 | F 410.528.0319
> [EMAIL PROTECTED] | http://www.vertisinc.com
>
> Vertis is the premier provider of targeted advertising, media, and
> marketing services that drive consumers to marketers more effectively.
>
> "The more they complicate the plumbing
>   the easier it is to stop up the drain"
>
> - Montgomery Scott NCC-1701
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to