TTable 对象的方法Edit() 出现Record/Key Delete 错误

first_david 2000-02-17 04:53:00
TTable 对象的方法Edit() 出现Record/Key Delete 错误

用户TTable得到数据,浏览编辑其中数据,在调用Edit()方法时,
某些记录出现Record/Key Delete 错误。记录没有关联。
问题怎样处理

...全文
148 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
alexela 2000-06-01
  • 打赏
  • 举报
回复
你是不是没设定TABLE的修改属性?我想问题出现在TABLE身上。仔细检查各种属性值吧,会有用的。
dthl 2000-02-19
  • 打赏
  • 举报
回复
如果你用的是象
Mssql server 中的自增字段的话
就会出现这个问题,是因为在Post后,BDE并不知道mssql server所给出的id号
所以解决方法是:
不用这类字段,
自己另外产生serial号给程序用,我就这么做的
saucerman 2000-02-17
  • 打赏
  • 举报
回复
检查你的Primary Key和Index
最关键的是对Primary Key的修改,比如BDE对主键上的Trigger支持不是很好。
最好用ADO连Database,BCB 5也该象Delphi 5一样有ADO构件页了吧。
RX Library 2.75 with Delphi 2009 support (by FlexGraphics software) ====================================================================== The Set of Native Delphi Components for Borland Delphi versions 1, 2, 3, 4, 5, 6, 7, 2005, 2006, 2009 and Borland C++ Builder 1, 3, 4, 5, 6, 2006 & 2009. 100% Source Code. Last revision date Oct 12, 1999. PLEASE FOLLOW THE INSTRUCTIONS PROVIDED IN THE INSTALLATION SECTION! TABLE OF CONTENTS ----------------- Latest Changes Overview History License Agreement Installation Demonstration Programs Source Files Using GIF Images Copyright Notes NEW FOR VERSION 2.75 -------------------- Delphi 5.0 & C++Builder 4.0 Compatibility New components: TRxLoginDialog New properties, events: TFormPlacement.RegistryRoot TFormPlacement.Version TFontComboBox.UseFonts TRxDBGrid.OnTopLeftChanged TRxDBLookupCombo.DisplayValues TStrHolder.Macros, TStrHolder.OnExpandMacros RxSpin.TValueType.vtHex New routines, methods, constants: SaveClipboardToStream, LoadClipboardFromStream (clipmon.pas) AppFileName, AppVerInfo (rxverinf.pas) XorString, XorEncode, XorDecode (strutils.pas) BUG FIXES. Overview -------- This version is the result of long unactivity of RX Library authors and some imperfections and bugs of other RX adaptations to Delphi 6. The authors of this version disclaim all warranties as to this software, whether express or implied, including without limitation any implied warranties of merchantability or fitness for a particular purpose. Use under your own responsibility, but comments (even critique) in English (or in Russian) are welcome. RX Library contains a large number of components, objects and routines for Borland Delphi with full source code. This library is compatible with Borland Delphi 1, 2, 3, 4, 5, 6 and Borland C++ Builder 1, 3, 4. This collection includes over 60 native Delphi components. RX Library is a freeware product. Feel free to distribute the library as long as all files are unmodified and kep

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧