掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
Excelファイル読み込みについて (ID:152028)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
TField.IsNullでチェックしてから処理すればいいのではないでしょうか。 Data.DB.TField.IsNull - RAD Studio API Documentation https://docwiki.embarcadero.com/Libraries/Athens/ja/Data.DB.TField.IsNull if Fields[0].IsNull = False then begin item.Caption := Fields[0].AsString; end else begin item.Caption := ''; end; if Fields[1].IsNull = False then begin item.SubItems.Add(Fields[1].AsString); end else begin item.SubItems.Add(''); end; if Fields[2].IsNull = False then begin item.SubItems.Add(Fields[2].AsString); end else begin item.SubItems.Add(''); end; if Fields[3].IsNull = False then begin item.SubItems.Add(Fields[3].AsString); end else begin item.SubItems.Add(''); end; if Fields[4].IsNull = False then begin item.SubItems.Add(Fields[4].AsString); end else begin item.SubItems.Add(''); end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.