Autor Beitrag
THF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Vista
Delphi 2005 professional
BeitragVerfasst: So 10.04.05 21:32 
Hallo,

was bedeutet es wenn ich folgende Meldung erhalte ?

Variable 'B' ist möglicherweise nicht initialisiert worden.

Was muß ich tun , das Programm läuft einwandfrei ?

Gruß

THF
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: So 10.04.05 21:35 
Naja....du verwendest zb die Variable B und addierst auf die Variable B irgendetwas, ohen ihr vorher einen Wert zu geben.....
zb einfach mit inc(B) oder sowas....
und dann kannst du gefahr laufen, dass B irgendeinen beliebiegen Wert erhält, da Delphi die Variablen nicht selber auf null setzt sondern den Datenmüll derim Speicher ist übernimmt....
also schreib davor mal B:=0 oder sowas, dann wird das nicht mehr angezeigt!
der_zaehe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

WinXP SP2
D6 Pers, D2005 Prof, VS2005
BeitragVerfasst: So 10.04.05 21:44 
könnte auch sein das du so was machst wie b := irgendeinefunktion;
wenn ich das jetzt mache kriege ich auch ein "Variable B ist möglischerweise ... "

_________________
[inspirationslos]