du kannst dir auch ein objekt schreiben, welches zusätzlich zu dem wert noch den status deiner zahl enthält ..
Delphi-Quellcode:
type
tMyInt = class
strict private
fInt: integer;
fNull: boolean;
public
property Value: integer read fInt write SetInt;
property NULL boolean read fNull write SetNull;
procedure Clear;
end;
somit kannst du einfach auf NULL abfragen oder deine daten einfach zurücksetzen ...