I use an unbuffered table and make some changes to it. When the user leaves the screen I unlock the record using UNLOCK IN order_header.
If I watch the debugger at this point a certain field contains 'K' but as soon at the UNLOCK IN order_header line runs it changes back to its previous value.
I then changed the code to this
SELECT order_header
REPLACE order_header.h_order_status WITH 'K'
UNLOCK IN order_header
On the UNLOCK it still sets the order_header.h_order_status back to 'P' its previous value.
I am using an unbuffered table without transactions.
Any ideas why this should be happening?
If I watch the debugger at this point a certain field contains 'K' but as soon at the UNLOCK IN order_header line runs it changes back to its previous value.
I then changed the code to this
SELECT order_header
REPLACE order_header.h_order_status WITH 'K'
UNLOCK IN order_header
On the UNLOCK it still sets the order_header.h_order_status back to 'P' its previous value.
I am using an unbuffered table without transactions.
Any ideas why this should be happening?