Re:Help with dbiDoRestructure example?
Quote
"Ernest Brackett" <ebs...@gis.net> wrote in message
news:983akk$62m3@bornews.inprise.com...
Quote
> Using Delphi 5.01 and Paradox
> 1. I added the following procedure to the Public section.
procedure
> AddField(Table: TTable; NewField: ChangeRec); Where should I
declare the
> code below? ChangeRec is giving me an "Undeclared Identifier"
error when I
> compile it in the IDE? I added BDE to my uses clause.
> type
> ChangeRec = packed record
> szName: DBINAME;
> iType: word;
> iSubType: word;
> iLength: word;
> iPrecision: byte;
> file://end;
My guess is that you put this declaration after the AddField
declaration. Change that.
Quote
> 2. I'm attempting to use the #10 example from the link below to
modify an
> existing database structure. I want the newly "Added" field to
be the 1st
> field in the database. The example adds the new field to end of
the table.
> How do I accomplish adding the new field as the 1st field using
the #10
> example?
http://www.borland.com/devsupport/bde/bdeapiex/index.html
Well, these examples can't help you there. If you don't mind
shareware, check out my TRestructure Pro component at
http://sedlan.com/table_restructure.php
With TRestructure Pro, you can add, insert (at any position),
change, move and delete fields, add, change or delete validity
checks, table lookups, add or remove referential integrity
constraints, add, change or delete primary index and add, change
or delete main and auxiliary passwords.
There's a trial version available for download. Examples of it's
use are at
http://sedlan.com/tr_easy.php
--
Jovan Sedlan
i...@sedlan.com
http://www.sedlan.com
#7 Components Home