关于dbgrid的双击事件 急,请高手帮忙 在线请教 dbgrid中没有记录, 我定义了双击事件 双击时发生错误 我怎么判断记录是否为空! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 with DataSource.DataSet do if not (Eof and Bof) then if not FieldByName('字段').IsNull then begin // 你的代码 end; 看 if (dbgrid.datasource.dataset.active) and (dbgrid.datasource.dataset.recordcount>0) then showmessage('记录不空'); if dbgrid1.datasource.dataset.recordcount>0 then 我认为 用dataset.recordcount>0 不太好,如果是Query,其中的sql语句有sum,那么dataset.recordcount>0 总是成立的,我推荐用 fancier(OP&&C/C++) 的 if not FieldByName('字段').IsNull then flp(会说话的哑巴) 说得很对,sum可能返回空值,所以最好用not fieldbyname('').isNull来判断 if not DataSet.Active then Exit;if DataSet.IsEmpty then Exit; delphi 数据库初始化错误 关于cxGrid 的level toolbar上设置了30多个按钮只显示16格,为什么? update更新语句!!!!不知道怎么写! 用什么办法来判断TList的Item所指的指针类型,搞定立马揭贴 200412 table查询问题!小弟急用!! 高份求助----急!!!!!!!!!!!!!!1 提两个问,再去睡觉:关于Delphi消息与 TdxDBGrid组件的。 怎样在多层结构中执行子查询? 求助!DELPHI操作EXCEL 插入列 再次求教!各位大侠! 在线等待,急!
if not (Eof and Bof) then
if not FieldByName('字段').IsNull then
begin
// 你的代码
end;
我推荐用 fancier(OP&&C/C++) 的
if not FieldByName('字段').IsNull then
if DataSet.IsEmpty then Exit;