Subject Re: [IBO] Re: default value in table field
Author Jason Wharton
Set an entry in the ColumnAttributes property (of TIBODatabase or the
dataset)

MYCOL=NOTREQUIRED

Although I don't recommend using this approach. Explicitly setting the value
in the client is much wiser.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: <baldiniadalb@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, June 13, 2001 6:08 AM
Subject: [IBO] Re: default value in table field


> --- In IBObjects@y..., Helen Borrie <helebor@d...> wrote:
> > At 10:06 AM 06-06-01 +0000, you wrote:
> > >Helen
>
> thanks for all your explications.
>
> > For example, to set off the REQUIRED property for NFILE_UP, you
> would put this statement in the BeforeInsert event handler:
> >
> > MyTable.FieldByName('NFILE_UP').Required := False;
> >
> I tried it but I always get exception.
>
> I used a TIBTAble connected with TIBDatabase
> I included all fields in TIBTAble and excluded NFILE_UP.
> It works fine !!
>
> Best Regards.
> Adalberto Baldini
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>