Compiler say that's wrong, why?
procedure TForm1.Button2Click(Sender: TObject);
Var
IniOrb, CurOrb : TOrbitData;
Orb : TOrbitData;
KepEl: TKepEl;
Cart: TCartesian;
Geo: TGeo;
D, T : TdateTime;
Epoch : TdateTime;
Time : real;
x, y, xstep : real;
begin
Dat := Frac( DateTimePicker1.Time );
Tim := Trunc ( DateTimePicker2.Date );
Epoch := D + T;
IniOrb := InitOrbit( Epoch, 1000, 0, 0, 0, 0, 60 * cToRad );
Time := 60;
Repeat
CurOrb := TOrbitData(Time, KepEl, Cart, Geo);
^
')' expected but ',' found
That's a record:
type TOrbitData = record // full orbit data
Epoch : TDateTime;
KepEl : TKepEl;
Cart : TCartesian;
Geo : TGeo;
end;
Error on the semicolon: ')' expected, but ';' found. What's wrong?