Subject Re: [IBO] Re: Prepare in IBquery - Help me!!!!
Author Jason Wharton
> > Jason told me that the reason of ALL the stataments being
> > prepared when the
> > Query is opened is because some IBO controls (Like
> > IB_UpdateBar, etc...)
> > needs to know if the user can insert/update/etc...
>
> That sounds to me like a strange design decision. If a control needs to
know
> this (?) then let it call Prepare explicitly. The documentation should
warn
> the developer about it. But I would still try to avoid this if possible.
> Please, no offence meant. I'm an IBO newbie, and I may be missing
something
> very important here.
> All comments are very welcome.

They are not prepared when the query is opened. They are prepared when some
control somehow references the CanInsert, CanEdit or CanDelete properties.
If there are not sufficient privileges then the error to inform the users
takes place. Simply having an IB_UpdateBar will cause these to get accessed.

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