Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 28 FEB 2002 10:28:56PM Bob Laqua wrote:

Is there anyway to test whether the current window was able to lock the record being displayed.

Thanks

Bob


At 01 MAR 2002 11:05AM Don Miller - C3 Inc. wrote:

It's easy enough as a post process on the key which causes a row to be read / locked. Just attempt to lock the same record again. If the ELSE branch is taken, you can check STATUS() to see if it was locked by someone else or by the workstation itself somewhere else.

Like:

LOCK WC_SRC_FILE%,@ID THEN

  • whoops, the record isn't locked by the window ..

END ELSE

ST=STATUS()
  • st=0 indicates another station
  • st=1 indicates the station's own lock

END

HTH.

Don Miller


At 01 MAR 2002 12:46PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

You can also check the WC_WLOCKED% window common variable.

There's nothing else in the system I know of that sets this variable. WINDOW uses it to protect the window fields if the record is locked.

The Sprezzatura Group

World Leaders in all things RevSoft


At 06 MAR 2002 07:55PM Bob Laqua wrote:

Thanks Sprezzatura

Thats what I was looking for!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/95ec043422a78deb88256b6f00132119.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1