In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TDbfDataset explanation

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TDbfDataset explanation

Mensaje por Giuseppe Bogetti »

Hi,
can someone please explain me what's wrong in this code.
The record never gets updated and the BREAK statement is never executed so
I think the lock on record is successfull.
IF ( oMovAcc:RecLock() )
oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
oMovMon:FieldGetByName( "GMAMOV" ) )
oMovAcc:Commit()
oMovAcc:RecUnLock()
ELSE
BREAK
ENDIF
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TDbfDataset explanation

Mensaje por ignacio »

Giuseppe,
Try to put some LogDebug() on your code to see what is exactly happening.
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:aotqabmilel9$.5wlqsbu93w5b$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Hi,
>
> can someone please explain me what's wrong in this code.
>
> The record never gets updated and the BREAK statement is never executed so
> I think the lock on record is successfull.
>
> IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
> ELSE
> BREAK
> ENDIF
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
InvalidAccount
Mensajes: 53
Registrado: Vie Mar 04, 2005 9:58 am

TDbfDataset explanation

Mensaje por InvalidAccount »

Giuseppe,
Try to put some LogDebug() on your code to see what is exactly happening.
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:aotqabmilel9$.5wlqsbu93w5b$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Hi,
>
> can someone please explain me what's wrong in this code.
>
> The record never gets updated and the BREAK statement is never executed so
> I think the lock on record is successfull.
>
> IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
> ELSE
> BREAK
> ENDIF
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

TDbfDataset explanation

Mensaje por Ingo Junge-Herrmann »

Giuseppe,
I tried it in combination with a databrowse. It works and the modification
is shown after oBrowse:RefreshCurrent()
Regards
Ingo
Giuseppe Bogetti <orangesocks@bgsoft.it> wrote:
>Hi,
>
>can someone please explain me what's wrong in this code.
>
>The record never gets updated and the BREAK statement is never executed
so
>I think the lock on record is successfull.
>
>IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
>ELSE
> BREAK
>ENDIF
>
>--
>Best regards,
>
>Giuseppe Bogetti
>B.G. Soft
>Cuneo - Italy
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

TDbfDataset explanation

Mensaje por Ingo Junge-Herrmann »

Giuseppe,
I tried it in combination with a databrowse. It works and the modification
is shown after oBrowse:RefreshCurrent()
Regards
Ingo
Giuseppe Bogetti <orangesocks@bgsoft.it> wrote:
>Hi,
>
>can someone please explain me what's wrong in this code.
>
>The record never gets updated and the BREAK statement is never executed
so
>I think the lock on record is successfull.
>
>IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
>ELSE
> BREAK
>ENDIF
>
>--
>Best regards,
>
>Giuseppe Bogetti
>B.G. Soft
>Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TDbfDataset explanation

Mensaje por Giuseppe Bogetti »

Il Sat, 19 Nov 2005 18:09:17 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> can someone please explain me what's wrong in this code.
>
> The record never gets updated and the BREAK statement is never executed so
> I think the lock on record is successfull.
>
> IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
> ELSE
> BREAK
> ENDIF
After some modification to the project, now that code works.
Thank you both for your input.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TDbfDataset explanation

Mensaje por Giuseppe Bogetti »

Il Sat, 19 Nov 2005 18:09:17 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> can someone please explain me what's wrong in this code.
>
> The record never gets updated and the BREAK statement is never executed so
> I think the lock on record is successfull.
>
> IF ( oMovAcc:RecLock() )
> oMovAcc:FieldPut( oMovAcc:FieldPos( "GMAACC" ), ;
> oMovMon:FieldGetByName( "GMAMOV" ) )
> oMovAcc:Commit()
> oMovAcc:RecUnLock()
> ELSE
> BREAK
> ENDIF
After some modification to the project, now that code works.
Thank you both for your input.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder