PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] How to check whether hTransactionStart  has already been called?
[WD21] How to check whether hTransactionStart has already been called?
Iniciado por guest, 28,jul. 2017 13:26 - 3 respuestas
Publicado el 28,julio 2017 - 13:26
Hi all,

hTransactionStart cannot be called nested.
Is there any way to check whether a transaction is already being logged, before starting a new one, other than using own flagging?

Best regards
Ola
Publicado el 28,julio 2017 - 15:43
Thanks Darren,

I'll try if I can test for error 70031 without causing any noise to the user. If that cannot be done silently then there is also the possibility to test for the existence of the transaction log file.

Best regards
Ola
Publicado el 28,julio 2017 - 17:00
Hi,

Just do a little When Exception In block with just an htransactionstart statement. Then you can check the error code or even just ignore it.

Rgds
Reg
Publicado el 29,julio 2017 - 16:25
Hi Reg,

That seems like a neat solution. Thank you.

Best regards
Ola