procedure TFrame_CSI.SpeedButton_spot_alleClick(Sender: TObject);
Var GDB_: TVieleKontrakte;
i, j: integer; // j verwende ich für eine Funktionszuweisung als Ergebnis
begin
{%H-} //_______________<<==== soll für j den Hinweis abachalten "is assigned but never used"
GDB_:=nil;
Frame_CSI.Memo_CSI.lines.Add('Einlesen der spot-Märkte, Daten seit 1984, dauert sehr lange');
GDB_:=CSI.Lies_COTSpot('C:\ua\Files\spot', 'spot', 0);
for i:=Low(GDB_) to high(GDB_) do
j:=GesDB.NullerTage_kicken(GDB_[i].Kurse);
DB_Kontrakte.WriteSQL_COT (GDB_, 'spot');
SetLength(GDB_,0);
{%H+} //_____________________ <<====
end;
The above method is not very exciting. I have several of this kind.
There is an integer var j.
This j looks unused, - it is not. The value zero says "no error", other values tell to me the kind of error.
So it is for debugging. I use it, the compiler does not.
So he shows me the warning "Var is assigned but never used", annoying in the sum of several methods of this kind.
Usually "never used" is rather important.
my question:
How can I get off the warning in just this very method?
The context menue suggests this ways
Hide message by Inserting {%H-}
Hide Message by inerting {warn 2027 off} to unit frame_csi.pas
Verbergen mit der Projekt-Einstellung (-vm5027)
I tried, but it does not work.
What do I have to change, that it DOES work?
Again: I just want it to be off for this group of lines and "j".