in For Beginners :: A return value from a function is defined by the return type. I guess that in most cases you would write a function to return a single value that would be an integer, string, boolean or some other simple type, also return types could be an array, a string list, an instance of a custom object or alike. Note that even if your function returns a string list (a collection of strings) it still returns a single value: one instance of the string list.
Read the full article to learn how to Return Multiple Values From A Delphi Function
Related:
- Understanding and Using Functions and Procedures
- Understanding Method Overloading and Default Parameters
- Use a Function or a Procedure as a Parameter in another Function
Have a Delphi Function Return Multiple Results / Values originally appeared on About.com Delphi Programming on Tuesday, December 11th, 2012 at 10:37:59.