FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADS Management Functions
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM

ADS Management Functions

Posted: Sat Jan 29, 2011 03:49 PM

Hello Everyone,

Does anyone sample code on ADS management? I am looking for a couple specific examples.

  1. If a record is locked by specific user, I would like to provide a message to user informing them of the user name that has locked the record.

  2. If a DBF needs to be opened exclusively, however the DBF is opened by other users, I would like to get a list of users that are using the DBF

I would appreciate everyone's assistance.

Thank you,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: ADS Management Functions

Posted: Sat Jan 29, 2011 09:38 PM

Darrell,

I'm sure you will find some discussions of these topics if you do a search of this forum.

An alternate answer to question 1 is to use opitmistic locking. Using this a record will never be locked for more than a split second, so you won't need to know who locked it.

An alternate answer to question 2 is to reuse deleted records instead of removing them by PACKing the file. This would lessen the need to get EXCLUSIVE USE.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion