www.kxcad.net Home > Electronic Index > Altium(Protel) Index
Declaration
function name (parameters) : return type;
Description
A function is a subroutine that returns a value. Note that pointers to functions are not permitted in scripts, ie you cannot define functional types. Variables declared inside a function are not accessible outside this procedure.
Example
Function TestFunc(Min, Max : integer) : integer;
Begin
Result := Random(Max - Min +1);
End;