Página 1 de 1
TDbfDataset explanation
Publicado: Sab Nov 19, 2005 6:09 pm
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
TDbfDataset explanation
Publicado: Lun Nov 21, 2005 12:37 pm
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
TDbfDataset explanation
Publicado: Lun Nov 21, 2005 12:37 pm
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
TDbfDataset explanation
Publicado: Lun Nov 21, 2005 5:25 pm
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
TDbfDataset explanation
Publicado: Lun Nov 21, 2005 5:25 pm
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
TDbfDataset explanation
Publicado: Jue Nov 24, 2005 10:38 am
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
TDbfDataset explanation
Publicado: Jue Nov 24, 2005 10:38 am
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