Mike
Why can't you just execute a TQuery.
Update Table1 set Field1 = DefaultValue
where Field1 is Null
or something similar?
Mark
----- Original Message -----
From: "Michael White" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Sunday, October 08, 2000 8:57 PM
Subject: [DUG]: Adding default value to field validity check


> 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"

---------------------------------------------------------------------------
    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"

Reply via email to