Recent content by Eric A

  1. Eric A

    Question Leave statement in a For each loop will release the lock

    My apologies - since there are no updates to the customer record outside of the for each loop the lock is released. Eric
  2. Eric A

    Question Leave statement in a For each loop will release the lock

    p.s. In the below instance the release will clear the customer buffer and there will be a 'record not available' error with the DISPLAY statement, but the customer record remains locked. DEFINE VARIABLE i AS INTEGER NO-UNDO. FOR EACH Customer where customer.custnu < 5 EXCLUSIVE-LOCK: /* 5...
  3. Eric A

    Question Leave statement in a For each loop will release the lock

    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. DISPLAY customer.name. If you reference customer outside a weakly scoped block (for each is...
Top