Subject Re: CHECK FOR OPEN RECORD IN A DBF
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sat, 16 Sep 2017 06:42:53 -0700
Newsgroups dbase.getting-started

On 9/16/2017 6:36 AM, Akshat Kapoor wrote:
> On 16/09/2017 10:31, Ken Mayer wrote:
>> On 9/15/2017 7:04 PM, Akshat Kapoor wrote:
>>> On 15/09/2017 22:02, ED FURCHE wrote:
>>>> ANY WAY TO CHECK FOR A RECORD BEING OPEN BEFORE I TRY TO UPDATE IT???
>>>>
>>> Check for value of rowset.state
>>> it should be able to give you the value you require.
>>>
>>> See OLH for state property of rowset under rowset class.
>>
>> State only works for the current user, it doesn't check for a record
>> lock if another user has it open ...
>>
>> Ken
>
> Locks on a network are a tricky issue.
>
> Will beginedit() work. It will try to place locks and return true of
> successful.

Only to an extent.

>
> It seems I will have to revisit chapter 10 on working in shared
> environment Book 1.
>
> I went through it once found what was of my use and left the rest.

This is why all that exists. Also:

http://www.goldenstag.net/dbase/Tutorial/11_SharedData.htm

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm