For the record, it's essentially the same in VFP8. The VFP8 Help file says:

"ISRLOCKED( ) returns a logical true (.T.) if the record is locked by the
current application; otherwise a logical false (.F.) is returned.

Note   ISRLOCKED() only returns .T. at the workstation that applied the
record lock."

-Rick


> -----Original Message-----
> From: profoxtech-boun...@leafe.com 
> [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fred Taylor
> Sent: Tuesday, April 28, 2009 9:47 AM
> To: profoxt...@leafe.com
> Subject: Re: VFP8: Record Lock
> 
> In the VFP9 help, emphasis mine.  (don't have VFP8 installed 
> anywhere to
> what it says):
>  Remarks
> 
> ISRLOCKED( ) returns a logical true (.T.) if the record is 
> locked by the
> current application; otherwise a logical false (.F.) is returned.
>   Note
> 
> ISRLOCKED( ) only returns .T. in the data session that 
> applied the record
> lock.
> 
> 
> 
> Unless you read between the lines, it's still not obvious 
> that it's only
> returning YOUR lock status, not the file's.
> 
> Fred
> 
> 
> On Tue, Apr 28, 2009 at 6:38 AM, Jack Skelley <
> jskel...@mail.newjerseydevils.com> wrote:
> 
> > Fred:
> > Thanks! If this is in the docs I certainly missed it.
> > Thanks for all the suggestions.
> > Regards,
> >
> > Jack
> >
> >
> > ________________________________________
> > From: profoxtech-boun...@leafe.com [profoxtech-boun...@leafe.com] On
> > Behalf Of Fred Taylor [fbtay...@gmail.com]
> > Sent: Friday, April 24, 2009 7:57 PM
> > To: profoxt...@leafe.com
> > Subject: Re: VFP8: Record Lock
> >
> >  Fundamental error.  ISRLOCK() doesn't tell you if someone 
> else has it
> > locked, only if YOU have it locked within this session of 
> VFP.  Won't even
> > tell you if another instance of VFP on your own machine has 
> a lock or not.
> >
> > Fred
> >
> >
> > On Fri, Apr 24, 2009 at 1:04 PM, Jack Skelley <
> > jskel...@mail.newjerseydevils.com> wrote:
> >
> > > Good Afternoon All:
> > > It's been along time since I wrote anything in a 
> multiuser environment.
> > And
> > > I mean along time! And never anything in VFP. The last 
> could have been in
> > FP
> > > DOS 2.6...
> > > So....
> > > Set exclusive off
> > > use mytable shared
> > > and...
> > > I locate a record
> > > check for a lock with isRlock()
> > > It returns false and I issue a lock()
> > > I ask: is the record locked and it returns .t.
> > > Now I launch the same application on the network and 
> locate the same
> > record
> > > in the same table
> > > check for a lock with isRlock() and it returns .f.
> > > On the first form I ask if the record is locked and it returns .t.
> > > Obviously I am missing something but I don't know what
> > > I have read the help screens for a multiuser app and 
> still not able not
> > > allow an edit on the second instance of the app.
> > > Can someone point me to where I read about how to do this?
> > > Thanks!
> > > Regards,
> > >
> > > Jack Skelley
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/200904281544.n3sfi0ru016...@el04.a5.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to