Dear All,
Is there a way to find whether a table is locked before doing any update operation on it?
For eg before I go on updating the records in the Table MyREC, I would like to know before hand whether the table is locked or not
IF MyREC.FINDSET(TRUE, FALSE) THEN REPEAT
......
UNTIL MyREC.NEXT = 0
Thanks.
0
Answers
That was what I did eventually. But I thought there could be a better way.
If this function manages to lock the table, it'll return true, otherwise it'll return false. Then you can catch the error and do whatever you need to do.