Var mytime : Float;
begin
mymin := mytime div 60;
mysec := mytime mod 60;
end;
It does not seem to matter what I call the vars the error still occurs.
QQps...
The code above will not compile because "MyTime" is a floating point integer type and the remaining working variables are integers.
Try this...
mymin := Round(mytime / 60);
mysec := Round(mytime) mod 60;
The following code could be used as well, but "Trunc" uses the Floating Point processor and therefore is slower than the "Round" function...
mymin := Trunc(mytime / 60);
mysec := Trunc(mytime) mod 60;
Additionally, the "Div" operand will divide 2 values and discard any remainder (similar to Trunc or Round), however, the "/" (divide) operand will divide 2 values preserving any remainder (returning a floating point value).
Please note that this response addresses your syntax (compile) errors specifically. If you should continue to have problems calculating these stream/file values please post again.