[[https://www.revelation.com/|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]] ==== Record Lock Status of current record being displayed (AREV Specific) ==== === At 28 FEB 2002 10:28:56PM Bob Laqua wrote: === {{tag>"AREV Specific"}} 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. [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 06 MAR 2002 07:55PM Bob Laqua wrote: === Thanks Sprezzatura Thats what I was looking for! [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=95EC043422A78DEB88256B6F00132119|View this thread on the forum...]]