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. |
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. |
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