I have created my own method which receives values from 2 spin edits but for some reason program is not compiling, when I am unable to call my procedure form the button. Please see code below:
procedure btnLossClick(Sender: TObject);
private
procedure GramsOff(HourRun, HourCycle : Integer; var GramOff : String);
public
{ Public declarations }
end;