field_set

Sets a field value.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

void field_set(data[,[name | number] | [attribute,flag]])
expr           data
int            attribute,number,flag
string         name

Description

data specifies the value to use.

name (optional) specifies a field by name.

number (optional) specifies a field by sequence number. It must evaluate to a valid field sequence number.

attribute (optional) specifies the user bitmask.

flag = true (optional) specifies that all fields that have any of the user attributes in the bitmask are set; otherwise, all fields that do not have any of the user attributes are set.

Example

Resets all fields:
field_set(NULL);
Resets all non-PRIMARY KEY fields:
field_set(NULL,uat_prikey,false);