Hi Michael,
If you're trying to set a default value for future records, why not use
the AfterInsert method of the TTable to set the default value?
Regards,
Bevan
Michael White wrote:
>
> Hi all,
>
> I have a table in which I want to programmatically add a default value to a
> field. Using Database Desktop to do this is as simple as adding a value to
> the "Default" box under Validity Checks when you select Restructure Table.
> Unfortunately, the table already exists at client sites, so I want to be
> able to do this in code. I imagine that it will be something to do with
> DbiDoRestructure? The app is written in Delphi 1, so I don't know if I can
> get at the default value or not.
>
> Anyone done this before?
>
> Thanks,
> Mike
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
--
Bevan Edwards mailto:[EMAIL PROTECTED]
Achieve Software Limited http://www.achieve.co.nz
Phone: (64-9) 444-4210 ICQ: 732011
Fax: (64-9) 444-4201
Mobile: (64-21) 979-603
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"