
Zitat von
igel457:
@Phantom1
Delphi-Quellcode:
function Cut(AValue:integer):byte;
begin
result := AValue;
if AValue > 255 then result := 255;
if AValue < 255 then result := 0;
end;
Ist das wahr?

So kann dann ja NUR noch 255 oder 0 rauskommen

Du willst doch sicherlich nur die Grenzen prüfen, oder etwa nich?
air