Subject Re[2]: [IBO] Re: Prepare in IBquery - Help me!!!!
Author Carlos H. Cantu
Thanks for the correction Jason !

[]s

Carlos
WarmBoot Informatica - http://www.warmboot.com.br
Interbase-BR - http://www.interbase-br.com

>> > 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
JW> know
>> this (?) then let it call Prepare explicitly. The documentation should
JW> 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
JW> something
>> very important here.
>> All comments are very welcome.

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

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