Hi All,
I have to subtract two time fields in BC and display the result in the report.
trigger OnAfterGetRecord()
var
myInt: Integer;
begin
Dur := OfficeScheduleType."Scheduled End Time" - OfficeScheduleType."Scheduled Start Time";
end;
Variable Dur is of Integer datatype, in this case.
I tried the above code on report but getting the result as '0'.
Is there any other way to achieve it ?
Please suggest.
Thanks !