Search found 210 matches: unlock

Return to advanced search

Re: copy a row of xbrowse

... Set new codsep aRow[8] := 0, // Reset record number or assign a new unique ID aAdd( oBrw:aArrayData, aRow ) // Add to the xBrowse array NEXT, oBrw:Unlock( .t. ), aCopy := NIL, // Reset aCopy oBrw:RefreshCurrent(), oBrw:SetFocus() ) ``` ### Generate Unique Identifiers For generating new unique IDs ...
by Otto
Tue Dec 05, 2023 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5832

Re: copy a row of xbrowse

... WHEN acopy!=NIL ACTION ( ; oBrw:Lock(), ; aCopy[ 1 ] := codsep ,; aCopy[ 8 ] := 0 ,; //recno aadd( oBrw:aArrayData, aCopy ),; oBrw:Unlock( .t. ), ; acopy:=NIL ,; oBrw:RefreshCurrent(), oBrw:SetFocus() ) ENDMENU but when I modify it the nRecord:= oBrowse:nArrayAt is the same
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5832

Re: Learn SQL with ChatGPT or when can ChatGPT really help

... https://www.home-assistant.io/integrations/openai_conversation/ The I can say 'Ok Google (HAL), please unlock the front door' and Google (HAL) answers...
by frose
Sat Nov 18, 2023 5:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Learn SQL with ChatGPT or when can ChatGPT really help
Replies: 9
Views: 672

Re: DBF . Commit

... and buffer flushing in Clipper and Harbour RDDs is safe and user cannot desynchronize data using different instruction order, i.e. DBSKIP(0)/UNLOCK/COMMIT,... The only problems which can appear are in OS or FS, i.e. the infamous opportunistic locks is MSDN networks which may completely break ...
by Carles
Mon Oct 23, 2023 4:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

Dear Enrico, dear Mr. RAo, What about CLOSE. Many users use UNLOCK COMMIT CLOSE in their code. I think CLOSE is enough. But we also need built-in functions that can detect the actual data status. And this status is the cache status. Like the EXPLORER Perhaps ...
by Otto
Mon Oct 23, 2023 8:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

nageswaragunupudi wrote:So, let is be clear on this:
1. COMMIT is safe and ensures all data is physically written the disk. But not necessary to make the changes visible to other users.
2. UNLOCK is all that is enough to make the changes visible to users across the network.

Hope Mr. Enrico agrees on this.


Yes, I agree.
by Enrico Maria Giordano
Mon Oct 23, 2023 7:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... on this: 1. COMMIT is safe and ensures all data is physically written the disk. But not necessary to make the changes visible to other users. 2. UNLOCK is all that is enough to make the changes visible to users across the network. Hope Mr. Enrico agrees on this. But commit is costly in terms ...
by nageswaragunupudi
Mon Oct 23, 2023 4:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... the test program and get the right time and values. FOR I := 1 to 5000 APPEND BLANK REPLACE FIELD ->test WITH "TEST"+ str(i) + time() UNLOCK if I = 5000 ? FILEDATE( cDbf ), FILETIME( cDbf ) waitrun( 'powershell_ise.exe -file ".\ps_datumzeit.ps1"' ) endif NEXT # Definieren ...
by Otto
Sun Oct 22, 2023 10:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... an experienced programmer like me to talk about it. But I see there are many opinions here. I can only confirm what Mr. Rao says. If you insert UNLOCK into Enrico's code, then the replace is carried out. I conduct my test as follows. I open the database with EmagDbu238 while the MsgInfo is displayed. ...
by Otto
Sun Oct 22, 2023 7:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... the contents of the buffer are written to the disk buffers of the OS, other client PC buffers can not be refreshed. So we are clear that simple Unlock is flushing data and index buffers to the disk buffers of the Windows OS. Ultimately any RDD finally writes the data to the disk using fwrite ...
by nageswaragunupudi
Sun Oct 22, 2023 2:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... : " + cValToChar( OrdKeyNo( "CITY" ) ) ;      SIZE 200,30 PIXEL OF oDlg UPDATE   @ 140, 20 BUTTON "Unlock" SIZE 140,30 PIXEL OF oDlg ;      ACTION ( DBRUNLOCK(), oDlg:Update(), oGet:SetFocus() )   @ 140,280 BUTTON ...
by nageswaragunupudi
Sun Oct 22, 2023 2:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... I was trying to submit to our learned colleagues. COMMIT or NO COMMIT SET HARDCOMMIT ON OR OFF Simply changing the data and if shared executing UNLOCK is all that is enough to ensure visibility of data as well as indexes to all other users on the network immediately So, please keep aside the ...
by nageswaragunupudi
Sun Oct 22, 2023 1:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

Hi,

nageswaragunupudi wrote:After changing the value of a field, execution of UNLOCK is enough to make the change visible to all other users.


If _SET_HARDCOMMIT == .T. it's ok. If _SET_HARDCOMMIT == .F. then you need commit.
by Carles
Sun Oct 22, 2023 4:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

set( _SET_HARDCOMMIT, .F. ) Yes. The default is SET HARDCOMMIT ON After changing the value of a field, execution of UNLOCK is enough to make the change visible to all other users. Documentation: SET HARDCOMMIT ON | off | (<lOnOff>)ArgumentsON | off | (<lOnOff>) ...
by nageswaragunupudi
Sun Oct 22, 2023 2:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433

Re: DBF . Commit

... you must issue a COMMIT after all database update commands (e.g., APPEND, REPLACE). To insure data integrity, COMMIT should be issued before an UNLOCK operation. Refer to the “Network Programming” chapter for more information on update visibility. " Regards, saludos.
by karinha
Fri Oct 20, 2023 5:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 2433
Next

Return to advanced search