Functions are just like procedures, but functions return a value. The values passed between the main program and the function must be the same data ...
Functions are just like procedures, but functions return a value. The values passed between the main program and the function must be the same data type. We have already used a function called UpperCase(). It took a string and returned the string with uppercase letters. Syntax: function Function_Name(var):DataType; example: function squared(var x:integer):integer; begin squared := x * x; end; This tutorial will create two functions. One function will square a number and the other will return the absolute value of a number.
Less
We keep track of your subscriptions through your Facebook account. No additional registration required.
Nothing will be posted to Facebook without your explicit permission.