xxxxxxxxxx
function functionName(parameterList): returnType; directives;
localDeclarations;
begin
statements
end;
//example
function WF: Integer;
begin
Result := 17;
end;
// example 2
function WF: Integer;
begin
WF := 17;
end;