Bonjour,
Vous allez probablement me trouver très nul, mais voici une procédure:
Dans la quelle, alors que :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 procedure GetSubsonicStepDistance; var intIndex, intDiff, intDepDist, intCumDist: Integer; begin with frmTripPlanner do begin intDepDist:= StrToInt(edSubDepDist.Text); intIndex:= cbxDepWp.ItemIndex; intCumDist:= StrToInt(GstlWPDist[intIndex]); intDiff:= StrToInt(GstlWPDist[intIndex + 1]) - StrToInt(GstlWPDist[intIndex]); GintDepProtectDist:= intDepDist; while intDepDist >= intDiff do begin intDepDist:= intDepDist - intDiff; Inc(intIndex); cbxDepWp.ItemIndex:= intIndex; intCumDist:= StrToInt(GstlWPDist[intIndex]); edSubDepDist.Text:= IntToStr(intDepDist); GintDepProtectDist:= intDepDist + intCumDist; intDiff:= StrToInt(GstlWPDist[intIndex + 1]) - StrToInt(GstlWPDist[intIndex]); end; lblTotalDepStep.Caption:= 'Total Depart. Distance: ' + IntToStr(GintDepProtectDist) + ' NM'; end; end;
Contient : '51',
Code : Sélectionner tout - Visualiser dans une fenêtre à part GstlWPDist[intIndex]
Est égal à 0.
Code : Sélectionner tout - Visualiser dans une fenêtre à part intCumDist:= StrToInt(GstlWPDist[intIndex]);
Une explication?
Cordialement
Pierre
Cordialement
Partager