FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MSSQL and XBROWSE
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
MSSQL and XBROWSE
Posted: Wed Nov 03, 2021 03:38 PM

Hi,
With standard DBF open in SHARED mode, when a table is open and displayed with XBROWSE on 2 computer in the network, if 1 user update a record , the change is visible on the xbrowse on the other computer . (There is an automatic refresh)

How is it possible with RecordSet ?
I think i have to change the CursorType .

oRsa:= CREATEOBJECT( "ADODB.Recordset" )
oRsa:LockType := 3 // lockoportunistic
oRsa:CursorType := 1 // opendkeyset
oRsa:CursorLocation := 3 // local cache
*

Thanks,

Philippe

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: MSSQL and XBROWSE
Posted: Thu Nov 04, 2021 09:15 PM

Jack

You are going to have come up with a timer that does some sort of oLbx:ReFresh() and or oRs:Requery() at some selected interval .. Hopefully someone will chime in here with a timer code example ..

Rick Lipkin

Continue the discussion