Subject | RE: [IBO] Problems with TIB_Transaction.AutoCommit property |
---|---|
Author | Jason Wharton |
Post date | 2004-11-18T23:23:10Z |
What you do for this is in your subclass override the IsAutoCommitStored and
put the logic to make it work as you like. It should be a protected virtual
method.
Jason Wharton
put the logic to make it work as you like. It should be a protected virtual
method.
Jason Wharton
> -----Original Message-----
> From: Calin Pirtea [mailto:calin.pirtea@...]
> Sent: Thursday, November 11, 2004 6:25 PM
> To: Ibobjects@Yahoogroups. com (E-mail)
> Subject: [IBO] Problems with TIB_Transaction.AutoCommit property
>
>
>
> Ib_transaction.AutoCommit property does not have a default
> value but has
> instead a store value.
>
> property AutoCommit: boolean read GetAutoCommit
> write SetAutoCommit
> stored IsAutoCommitStored;
>
> The property is stored into the DFM _only_ if it is true and
> serverautocommit is false.
>
> Problem is if you have a base class form where autocommit is
> true and you
> inherit from this base class but want autocommit to be false
> you cannot make
> it false because it will not store into the DFM, so Delphi
> will use the
> inherited value.
>
>
> I think the default should be added and IsAutoCommitStored
> should let it to
> be stored without looking at autocommit property. If
> Autocommit is to be
> forced False then SetAutoCommit and SetServerAutoCommit
> should be fixed
> rather then prevent storing of valueable values into the DFM.
>
> Opinions?
>
> Calin Pirtea
> COMMUNICARE DEVELOPMENT TEAM
> Communicare Systems Pty Ltd
> 08 9332 2433
> 041 9906 150
> 08 9310 1516 (fax)