Subject [IBO] Re: How to chekc require field on beforepost?
Author bigred17201720
Thanks for your reply,

but what I want to do is

on iboquery.beforepost do

for i:= 0 to iboquery.fieldcount-1 do
begin
if (iboquery.fields[i].isnull) and (iboquery.fields[i].required)
then
showmessage('filed '+
iboqurey.fields[i].displaylabel
//user didnot know the fieldname -- ivno
//user only see the field displaylabel == invoice no
+ ' must fill value!!')

end;

--- In IBObjects@y..., Svein Erling Tysvaer
<svein.erling.tysvaer@k...> wrote:
> Sorry that we never answered you, Kadee. You can bypass IBOs check
by
> explicitly setting the column to not required. I never use IBOQuery
myself,
> but expect it to have this functionality (it is no problem doing
this with
> an IB_Query). Then you ought to get to your beforepost.
>
> But I don't know if this is the normal way of handling a problem
like yours,
> Set
>
> At 10:56 14.11.2002 +0000, you wrote:
> >repost again after 5 day
> >
> >please help!
> >
> >
> >--- In IBObjects@y..., "bigred17201720" <kadee@p...> wrote:
> > > Dear Sir;
> > >
> > > I use the iboquery,there are some fields
> > > with required = ture;
> > >
> > > I want to check if user fill the data
> > > on the query.beforepost and hint the
> > > user error of field.displaylabel require value
> > > . But I found the iboquery
> > > raise the error of -- "custno" field require
> > > a value --- and query.beforepost doesn't fire
> > > anyway.
> > >
> > > How can I do?