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.
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
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
TDbfDataset explanation
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
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
- Site Admin
- Mensajes: 9440
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
TDbfDataset explanation
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
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
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 53
- Registrado: Vie Mar 04, 2005 9:58 am
TDbfDataset explanation
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
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
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TDbfDataset explanation
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
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
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TDbfDataset explanation
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
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
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
TDbfDataset explanation
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
> 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
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
TDbfDataset explanation
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
> 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