29-01-2018, Saat: 05:38
Merhaba; gecenin bir yarısı sorunu çözemedim için konu açmak durumunda kaldım.
Sorunum databasedeki integer değerleri saniye çevireceğim, fakat daha convert etmeden aşağıdaki hatayı almaya başladım, acaba sorun nedir anlayamadım, yardımlarınızı rica ederim.
First chance exception at $763408B2. Exception class EVariantTypeCastError with message 'Could not convert variant of type (Null) into type (Int64)'. Process Smart.exe (10992)
Sorunum databasedeki integer değerleri saniye çevireceğim, fakat daha convert etmeden aşağıdaki hatayı almaya başladım, acaba sorun nedir anlayamadım, yardımlarınızı rica ederim.
First chance exception at $763408B2. Exception class EVariantTypeCastError with message 'Could not convert variant of type (Null) into type (Int64)'. Process Smart.exe (10992)
Close;
SQL.Clear;
SQL.Add('Select SUM(SURE) as TOPLAM From DETAY Where MUZIKNO=:KN and TARIH=:TR');
ParamByName('KN').AsString := Items.Item[I].SubItems[2];
ParamByName('TR').AsDate := Ekleme.Date;
Prepared := True;
Open;
if Not IsEmpty then
begin
Memo1.Lines.Add(IntToStr(FieldByName('TOPLAM').Value));
// showmessage(IntToSaniye(FieldByName('TOPLAM').Value));
// Items[I].Subitems[6] := IntToSaniye(FieldByName('TOPLAM').Value);
end;
function TForm2.IntToSaniye(ASecs: Integer): String;
begin
Result := Format('%.2d:%.2d:%.2d', [ASecs div 3600, ASecs mod 3600 div 60,
ASecs mod 3600 mod 60]);
end;
Hayat bazen güzel olabiliyor.

