Function order_close

This function closes the cursor used to select orders from the database.

Function order_close (orders.4gl):
01 FUNCTION close_order()
02   WHENEVER ERROR CONTINUE
03   CLOSE order_curs 
04   WHENEVER ERROR STOP
05 END FUNCTION
Note:
  • Line 03 closes the order_curs cursor. The statement is surrounded by WHENEVER ERROR, to trap errors if the cursor is not open.