提交了没有?如post或applyupdate.
解决方案 »
- 关于数据库主体、镜像故障自动转移后ADO 的ConnectionString配置问题。在线等~~~
- 可否获取windows开始菜单的高度?
- 运行delphi报BORDBK50.DLL错误!郁闷1!!!
- webbrowser问题
- 推荐一个超好的bt下载网站http://www.manfen.net/forum/btsubsystem.php?type=4
- 相信碰到这个问题的人不多,都进来看一下!
- 谁有Crystal Reports 9 VCL for Delphi 7,急用谢谢
- 请问如何用delphi显示gif格式的图片呢?
- HELP,grid 控件?
- delphi 的数据库连接问题
- 如何让打印机打一行汉字就停下来,且不走完一页纸?
- 用Delphi自带的Quickreport做的报表为什么老是报错?
function DbiPackTable (hDb: hDBIDb; hCursor: hDBICur; pszTableName: PChar; pszDriverType: PChar; bRegenIdxs: Bool): DBIResult stdcall;这是函数原型。这是永久删除记录的唯一办法。
参数的说明:
ParametershDb Type: hDBIDb (Input)
Specifies the valid database handle.
hCursor Type: hDBICur (Input)
Specifies the cursor on the table to be packed. Optional. If hCursor is specified, the operation is performed on the table associated with the cursor. If hCursor is NULL, pszTableName and pszDriverType determine the table to be used.
pszTableName Type: pCHAR (Input)
Pointer to the table name. Optional. If hCursor is NULL, pszTblName and pszTblType determine the table to be used. (If both pszTableName and hCursor are specified, pszTableName is ignored.) If pszTableName is a fully qualified name of a table, the pszDriverType parameter need not be specified. If the path is not included, the path name is taken from the current directory of the database associated with hDb. pszDriverType Type: pCHAR (Input)
Pointer to the driver type. Optional. This parameter is required if pszTableName has no extension. The only valid pszDriverType is szDBASE.
bRegenIdxs Type: BOOL (Input)
Specifies whether or not to regenerate out-of-date table indexes. If TRUE, all out-of-date table indexes are regenerated (applies to maintained indexes only). Otherwise, out-of-date indexes are not regenerated.
uses
bde;
......
try
table1.close;
table1.exclusvie:= true;
table1.open;
check(dbipacktable(table1.dbhandle,table1.handle,nil,nil,true));
table1.close;
table1.exclusive:=false;
finally
....