delphi错误‘Unable to find record. No key specified’‘解决办法注意事项。
来源:互联网 发布:越秀网络教学平台 编辑:程序博客网 时间:2024/05/12 15:56
1.使用clientdataset的设置事件的响应:
procedure TDataModule2.ClientDataSet1AfterPost(DataSet: TDataSet);
begin
Try
TClientDataSet(DataSet).ApplyUpdates(-1);
Except
TClientDataSet(DataSet).CancelUpdates;
Messagedlg('数据更新失败!',mtconFirmation,[mbOK],0);
abort;
end;
end;
2.delphi错误‘Unable to find record. No key specified’‘解决办法:
大多是因为表有主键,选中ClientDataSet 双击
在弹出的窗体中选中主键字段的ProviderFlag属性设为pfInKey。
- delphi错误‘Unable to find record. No key specified’‘解决办法注意事项。
- Unable to find record. No key specified错误解决
- "Unable to find record. No key specified"错误分析及解决办法
- Midas三层结构中“Unable to find record. No key specified”错误分析及解决方案
- Midas三层结构中“Unable to find record. No key specified”错误分析及解决方案
- 在Delphi中使用三层结构ClientDataSet出现 Unable to find record or record ...
- JTAG“Unable to find target”错误解决办法
- “Unable to find vcvarsall.bat”错误解决办法
- Unable to find a javac compiler错误之解决办法
- Unable to find the wrapper "https"错误的解决办法
- unable to find the wrapper "https"错误解决办法
- Unable to find the wrapper "https"错误的解决办法
- Unable to find the wrapper "https"错误的解决办法
- Unable to find vcvarsall.bat的错误的解决办法
- Unable to connect to specified host. 错误
- unable to find vcvarsall.bat的解决办法
- Unable to find vcvarsall.bat解决办法
- 安卓单元测试错误Test run failed: Unable to find instrumentation target package解决办法
- "未将对象引用设置到对象的实例"异常的几种常见场合 【转载留着查找方面,哈哈】
- object-c 日志
- Xcode做简易计算器
- C语言清空输入缓冲区的N种方法对比
- tomcat启动时间修改
- delphi错误‘Unable to find record. No key specified’‘解决办法注意事项。
- SSH登陆之忽略known_hosts文件
- 10 Things Extraordinary People Say Every Day
- 端口被占用异常
- Qt程序聊天弹屏问题简单解决方法(类似QQ聊天聊天窗口弹屏)
- SQLServer批量重建索引(整理)
- Android横竖屏总结(转)
- 中介者模式
- 的界面跳转