DbiDoRestructure ? (Pack a Paradox table) 
Author Message
 DbiDoRestructure ? (Pack a Paradox table)

I would like to pack a Paradox table at run time.  I know that the command
is DbiDoRestructure(), but I do not understand what goes inside the
parenthesis.  Can you help me out?

Rick Dubbs
Technology Coordinator
Monore-Gregg School District
Monrovia (near Indianapolis), Indiana, USA



Sat, 04 Jul 1998 03:00:00 GMT  
 DbiDoRestructure ? (Pack a Paradox table)

Quote:

>I would like to pack a Paradox table at run time.  I know that the command
>is DbiDoRestructure(), but I do not understand what goes inside the
>parenthesis.  Can you help me out?

Look in page 164 of "Borland Database Engine User's Guide". There are many
parameters with many options.

--
Gabriel Beccar-Varela

--



Sat, 04 Jul 1998 03:00:00 GMT  
 DbiDoRestructure ? (Pack a Paradox table)

Quote:

>I would like to pack a Paradox table at run time.  I know that the command
>is DbiDoRestructure(), but I do not understand what goes inside the
>parenthesis.  Can you help me out?
>Rick Dubbs
>Technology Coordinator
>Monore-Gregg School District
>Monrovia (near Indianapolis), Indiana, USA

Follow the Code...

{Function to Pack a Table}
function PackTable(tbl:TTable): Boolean;
var
crtd: CRTblDesc;
db: TDataBase;
begin
try
   Screen.Cursor := crHourglass;
   Result := True;
   with tbl do
      begin
      db := DataBase;
      If Active then
         Active := False;
      if not db.Connected then
         db.Connected := True;
      FillChar( crtd, SizeOf( CRTblDesc ), 0 );
      StrPCopy( crtd.szTblName, TableName );
      crtd.bPack := True;

         nil, nil, False ) <> DBIERR_NONE then
         Result := False;
      Open;
   end; {with}
except
   on Exception do {any exception}
      Result := False;
end; {try..except}
Screen.Cursor := crDefault;
end; {procedure}

This Works!

Carlos Alberto



Thu, 09 Jul 1998 03:00:00 GMT  
 DbiDoRestructure ? (Pack a Paradox table)

writes:

Quote:

>I would like to pack a Paradox table at run time.  I know that the
command
>is DbiDoRestructure(), but I do not understand what goes inside the
>parenthesis.  Can you help me out?

>Rick Dubbs
>Technology Coordinator
>Monore-Gregg School District
>Monrovia (near Indianapolis), Indiana, USA

My understanding is, from the documentation I read, that Paradox tables
- unlike DBF - automatically reclaim deleted record space.  Hence no
need to pack them.

Ben
Arrow



Fri, 10 Jul 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Pack of Paradox tables (DbiDoRestructure) fails

2. pack a Paradox 5 table with dbiDoRestructure

3. DbiDoRestructure- Adding passwords to paradox tables

4. Using DbiDoRestructure to Pack PX files - HELP

5. How do you pack a paradox tables?

6. How to Pack Paradox tables in run-time

7. Packing a Paradox table in Delphi?

8. Packing paradox tables with auxiliary passwords

9. Packing Paradox Tables, Help

10. Need to Pack Paradox tables: Please email me

11. How to pack Paradox table

12. CL - pack table in paradox

 

 
Powered by phpBB® Forum Software