No, as Tom already said, functions should return one and only one result. IMHO, functions should always fall in two categories: - getters e.g. i = GetMyInteger(..) - event-handler-likes meaning that they return a boolean value signalling success (e.g. if not MySend(..) then...) where their success depends on some external devices, applications (printers, mail servers etc.)
Programming by side-effects, i.e. function Foo(byref myObject as MyClass, byref a as String, byref i as Integer) as Integer // manipulate myObject a = "ABBA" i = i + 1 return 42 // in honour to Douglas Adams end function is simply bad programming style. Metsis _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
