Functions are similar to procedures but always return a value of some sort.
If a procedure does not return a value then it can just be called, but with functions the value passed back must be handled some how. A useful function to start with is Time . To try this function out create a new label control on a suitable form. Next place a Timer control on the form as well and set its Interval to 1000 . When you run the program you should see the label control showing the time updated every second.