guides:programming:programmers_reference_manual:write_column

Write_Column routine

Writes one or more columns to a specified row in a table.

Write_Column(tablename, key, columnlist, columnvaluelist, lockflag)

The Write_Column routine has the following parameter.

ParameterDescription
TablenameSpecifies the name of the table to which to write column information.
KeyThe name of the key to which to write column information.
ColumnlistA dictionary column name or column number or a list of dictionary column names or numbers to write information to. Each entry in columnlist must have a corresponding value in columnvaluelist.
columnvaluelistList of values to write to a column. Each value is written to a column specified in columnlist. Each entry in columnvaluelist must have a corresponding value in columnlist.
LockflagSpecifies whether or not the row is locked during the write operation. If null, no locking takes place.

lockflag Description
0 - No locking takes place.
1 - Row is locked prior to the write operation and unlocked after the write operation.
2 - Row is unlocked after the write operation.
/* Writes the value 2A100 to the ORDER_NUM column and the value B10 to the SUPP_NO column in row 1 of the CAR_ORDERS table. The row is unlocked after the write operation. */

columnlist = "ORDER_NUM":@FM:"SUPP_NO"
columnvaluelist = "2A100":@FM:"B10"

Write_Column("CAR_ORDERS", 1, columnlist, columnvaluelist, 2)
  • guides/programming/programmers_reference_manual/write_column.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1