Try using the RECORDLOCKED function... Locked = RECORDLOCKED( file.variable, record.ID )
It will return you a value indicating the locked status, including the type of lock and whether you own it or not (for example, it'll tell you that you have a READL on it already, or that Joe has a FILELOCK on it) Dave At 09:16 AM 9/10/2004 -0400, Stevenson, Charles wrote: >I'm trying to retrofit a fix into an update subroutine called from lots >of places, 1 to 3 layers deep, in legacy code. >Currently the subr writes many records, releasing each. >Sometimes it shouldn't release; it should let the calling program >control that. >(By the way, stale memory records in calling programs is not an issue in >my particular case. Yes, I thought about that.) > >This is the reason "nested transactions" were invented. *Sigh* >Don't suggest retrofitting UV's transaction logging >(START/COMMIT/ABORT). I love it for new systems, but I avoid >retrofitting it. ======================================================================== David T. Meeks || "All my life I'm taken by surprise Architect, Technology Office || I'm someone's waste of time Ascential Software || Now I walk a balanced line [EMAIL PROTECTED] || and step into tomorrow" - IQ ======================================================================== ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
