Subject | Re: [IBO] Transaction Handle |
---|---|
Author | Jason Wharton |
Post date | 2002-09-13T14:49:45Z |
StartTransaction doesn't necessarily mean you will have a started
transaction handle. This is merely changing AutoCommit behavior and telling
the IBO components it is in an explicit transaction.
You use the Started property to tell if a physical transaction is present.
Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
transaction handle. This is merely changing AutoCommit behavior and telling
the IBO components it is in an explicit transaction.
You use the Started property to tell if a physical transaction is present.
Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
----- Original Message -----
From: "Luiz" <cprmlao@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, September 13, 2002 7:18 AM
Subject: Re: [IBO] Transaction Handle
> Did you checked if there is a transaction started before try it?
>
> If you use 'StartTransaction' to start the transaction then check for
> 'InTransaction' else if using implicit transaction check for 'Started'
>
> I tested your code and give me is no error if there is a transaction
> started.
>
> Luiz.
> ----- Original Message -----
> From: "Burak OZLER" <burak.ozler@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Friday, September 13, 2002 10:46 AM
> Subject: [IBO] Transaction Handle
>
>
> > I'm trying to retreive trHandle ptrHandle of a transaction object
> >
> > After I start the transaction.
> >
> > I try these
> > IntToStr(integer(trnMakbuz.trHandle^)) gives me error
> >
> > IntToStr(integer(trnMakbuz.PtrHandle^))
> >
> > trnMakbuz.PtrHandle^ always Nil.
> >
> > Can somebody send me a code sample to get the transaction handle??
> >
> > thanks
> >
> > Burak