GARANTIR DESCONTO

Fórum Compactar tabelas paradox #207164

17/01/2004

0

Alguém conhece alguma rotina para compactar tabelas paradox?

Se alguém souber favor me ajude.

[b:c2f5c8119f]Titulo editado pelo Moderador (AZ) - Removido: ´COMPACTAR TABELAS PARADOX´[/b:c2f5c8119f]


Josimar

Josimar

Responder

Posts

17/01/2004

Aroldo Zanela

Colega,

function dgPackParadoxTable(Tbl: TTable; Db: TDatabase):DBIResult;
{Packs a Paradox table by calling the BDE
 DbiDoRestruct function. The TTable passed as the
 first parameter must be closed. The TDatabase passed
 as the second parameter must be connected.}
var
  TblDesc: CRTblDesc;
begin
  Result := DBIERR_NA;
  FillChar(TblDesc, SizeOf(CRTblDesc), 0);
  StrPCopy(TblDesc.szTblName, Tbl.TableName);
  TblDesc.bPack := True;
  Result := DbiDoRestructure(Db.Handle, 1, @TblDesc, nil, nil, nil,
False);
end;



Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar