field_dynattr

Assigns dynamic field attributes.

Available in:

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

Syntax

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

Description

If no parameters are specified, the active field's dynamic attribute is returned.
data specifies a dynamic attribute. If it has no name or number, all fields in the current window are assigned the same dynamic attributes.

name (optional) identifies a single field to which attributes are assigned.

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

attribute specifies a bitmask. The following are valid, dynamic, and can be changed at runtime:

  • NOECHO
  • UPPER
  • RESET
  • AUTOSKIP
  • PROTECT

flag = true specifies that the dynamic attributes are assigned to all fields that match the bitmask.

Notes

See trim.h for examples of dynamic attributes.