Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Firebird e Interbase (https://www.clubdelphi.com/foros/forumdisplay.php?f=19)
-   -   Transaction active (https://www.clubdelphi.com/foros/showthread.php?t=10838)

cmgenny 31-05-2004 03:50:05

Transaction active
 
Holas

Como me doy cuenta cuando el componente IBTransaction tiene Transaciones pendientes. Quisiera hacer un mensaje parecido al que aparece en el Interactive SQL de IBConsole que te dice al salir que existen Transaciones pendientes.

Muchas Gracias.

brandolin 31-05-2004 14:42:44

utiliza la ayuda....

Indicates whether a database transaction is in progress or not.

property InTransaction: Boolean;

Description

Examine InTransaction at run-time to determine if a database transaction is currently in progress. InTransaction is True if a transaction is in progress, False otherwise.

The value of InTransaction cannot be changed directly. Calling StartTransaction sets InTransaction to True. Calling Commit or Rollback sets InTransaction to False.

FNADALO 31-05-2004 16:38:16

Prueba con lo siguiente
 
if not (laConexion).Intransaction then (laconexion).BeginTrans;


La franja horaria es GMT +2. Ahora son las 16:53:53.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi