philippoommen1
Member
Hi,
Please clarify my doubt. In the below code When i = 3, Progress will release the lock and then leave OR, 3rd record will be in the Exclusive lock until we write the Release statement and then Leave?
Thanks
-Philip-
Please clarify my doubt. In the below code When i = 3, Progress will release the lock and then leave OR, 3rd record will be in the Exclusive lock until we write the Release statement and then Leave?
Code:
DEFINE VARIABLE i AS INTEGER NO-UNDO.
FOR EACH Customer where customer.custnu < 5 EXCLUSIVE-LOCK: /* 5 Records */
i = i + 1.
customer.name = customer.name + Sting(i).
IF i = 3 THEN LEAVE.
PAUSE 25.
END.
Thanks
-Philip-
Last edited by a moderator: