怎么判断一个字段是不是NULL? if ADOQuery1.Recordset.Fields[1].IsNull then 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if ADOQuery1.FieldByName('aa').IsNull then showmessage('空'); 来迟了.再给一种另类答案:有时候没有数值它也不会为空,此时:if ADOQuery1.FieldByName('aa').ASString='' then showmessage('空'); if ADOQuery1.Recordset.Fields[1].IsNull then或if ADOQuery1.FieldByName('fieldname').IsNull then VarIsNull(ADOQuery1.FieldByName('fieldname').Value;VarIsEmpty(); 我这样写就不行:if ADOQuery1.Recordset.Fields[1].IsNull then如果该成这样:if ADOQuery1.FieldByName('aa').IsNull then就可以了?这怎么回事?我用的DELPHI6 上次放分,是一个多月之前,平均给分,尽量12号前结帖. 问个简单问题. xml的一个小问题(急) 怎么实现文件的复制? 关于CLIENTDATASET中字段值唯一性的实现问题 关于gvbasic的问题,谢谢。 急!求一个模拟时钟的程序!!特别急我在面试 为什么2000下和XP下计算结果会有差异? 我在SQL数据库表字段中设有默认值,但在delphi中增加记录后,没有默认值??? 如何简单求出两个Tdatetime型的时间差一秒? 有没有ahm menu 6 的控件 听说有个网站专门征集dephi 函数,在哪?
showmessage('空');
有时候没有数值它也不会为空,此时:
if ADOQuery1.FieldByName('aa').ASString='' then
showmessage('空');
if ADOQuery1.FieldByName('fieldname').IsNull then
VarIsEmpty();
if ADOQuery1.Recordset.Fields[1].IsNull then
如果该成这样:
if ADOQuery1.FieldByName('aa').IsNull then
就可以了?
这怎么回事?我用的DELPHI6