Subject | Re: [IBO] Re: Prepare in IBquery - Help me!!!! |
---|---|
Author | Jason Wharton |
Post date | 2001-01-02T15:59:20Z |
> > Jason told me that the reason of ALL the stataments beingknow
> > 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
> this (?) then let it call Prepare explicitly. The documentation shouldwarn
> the developer about it. But I would still try to avoid this if possible.something
> Please, no offence meant. I'm an IBO newbie, and I may be missing
> very important here.They are not prepared when the query is opened. They are prepared when some
> All comments are very welcome.
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