Proofing if record is locked

Hello,

How can i proof if the current record in a ttable component is locked or
not. I want to check it in the beforeEdit-Event.

Andreas
(sib...@t-online.de)