Hey!

Welcome to Blip, home of the best original web series! When you’re done watching this episode, checkout some of our top shows or learn more about us!

×

SchoolFreeware

Free Pascal Tutorial 12 - Functions - Lazarus

Other Sharing Options

×
Embed
The embed code has been copied to your clipboard
Share
About this episode
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
06:10 How To
Discover the best in original web series.© 2012 Blip Networks, Inc. All Rights Reserved.