I`m attempting to learn functions but I seem to be lost. I wanted a function that takes the integer entry in a editbox and multiplies that value by 2.
One of the error messages states[Error] Unit1MainCab32.pas(77): Undeclared identifier: 'edCabQty'
Thanks for the help
function PcOneCount (Pc: Integer) : Integer;
Pc : = StrToInt(edCabQty.Text);
PcOneCount := Pc * 2;