oRs := FW_OpenRecordSet( oCn, cSql, adLockBatchOptimistic )
Horizon wrote:Hi Mr. Rao,
Using mariadb I want to use pessimistic mode. I want to limit other users when one user read a record. Is it possible? (When one user read one record, record should be locked. at the same time other users can only read the record. not update)
if possible can you please give an example using maria15.prg.
Thank you.
- Enhancement to method EditBaseRecord(...)
Added optional new 5th param, lLock (default .f.)
Revised syntax:
EditBaseRecord( [cFieldList], [lNew], [bEdit], [oBrw], [lLock] )
If lLock is set to true, the row is locked for edit and lock is released
after edit.
nageswaragunupudi wrote:Whatsnew.txt : FWH1806
------------------------------ Enhancement to method EditBaseRecord(...)
Added optional new 5th param, lLock (default .f.)
Revised syntax:
EditBaseRecord( [cFieldList], [lNew], [bEdit], [oBrw], [lLock] )
If lLock is set to true, the row is locked for edit and lock is released
after edit.
@ 20, 20 BTNBMP PROMPT "ADD" SIZE 100,30 PIXEL FLAT OF oDlg ;
ACTION oRs:EditBaseRecord( nil, .t., { |oRec| MyEditDlg( oRec ) }, oBrw, .T. )
nageswaragunupudi wrote:We will test and come back to you on this.
EditBaseRecord( [cFieldList], [lNew], [bEdit], [oBrw], [lLock], [bNotLock] )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Marc Venken, nageswaragunupudi and 58 guests