I create a new Unit and use the function fabs():
Code: Select all
Function TimeLord_Position(Var tl : TTimeLord; lat, lon : Real) : Boolean;
Begin
if (fabs(lon) > 180.0) Then Result := False;
if (fabs(lat) > 90.0) Then Result := False;
tl.latitude := lat;
tl.longitude := lon;
Result := True;
End;
Now I get the following error:
159 303 Identifier "fabs" was not declared __Lib_TimeLord.mpas
If I try the same with the "Uses TriGon;" I get the error:
3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas
How can I solve my problem?
Best regards
Elmar Faber