10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table Field OperationsHow You Can Delete RowsThe user can delete rows by using the Delete Current Row or Delete All Rowsmenu items of the table field's control button.You can enable or disable deletions by enabling or disabling these menu items.The following code exemplifies disabling the delete menu items:field(tblfld_controlbutton.deletecurrent).CurBias = MB_DISABLED;field(tblfld_controlbutton.deleteall).CurBias = MB_DISABLED;By default this menu item is enabled only in FM_UPDATE and FM_QUERYmodes, and disabled in FM_READ, FM_USER1, FM_USER2, and FM_USER3modes.How You Can Append Rows to the End of a Table FieldThe user can append a row at the end of the table field by choosing the rowbelow the last row with data, and then directly editing it (if appending isenabled). The CurOps attribute of the table field determines whetherappending is enabled.To enable a row to be appended, the CurOps attribute is set to OP_APPEND. Todisable this capability, set CurOps to OP_NONE. CurOps can be set directly, oryou can use one of the following attributes:• ReadOps• UpdateOps• QueryOps• User1Ops• User2Ops• User3OpsYou can use the Property Inspector to initialize these attributes. Also, they canbe changed dynamically in 4GL.Working with Arrays, Table Fields, and Collections 243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!