Here you'll find a discussion and some recommendations on, as you'd expect, appropriate
use of Return codes. There is also some good stuff on function communication through
parameters and the need to keep that level of communication clearly defined... a subject
that is alway near and dear to my (the webmaster's) heart.
Download the file.
