Progress Quiz 14

Qn 14: Check the code below and mention if a progress transaction is started or not in each case!
answer (Y/N)
FOR EACH table:
DISPLAY table.
END.
No
FOR EACH table:
UPDATE table.
END
Yes
FIND FIRST table.
REPEAT ON ENDKEY UNDO, LEAVE:
ASSIGN table.field = aFunction().
FIND NEXT table.
END
Yes
FOR EACH table EXCLUSIVE-LOCK:
DISPLAY table.
END.
Yes
 

TomBascom

Curmudgeon
These are all horrible examples that illustrate extremely irresponsible transaction, buffer and lock scoping. Hopefully none of their production code looks anything like that.

To say nothing of using FIND FIRST :(

Yes, your answers look correct to me.
 
Top