field_attr
Returns the user attribute mask for the currently active field.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
X |
|
|
|
Syntax
int field_attr()
Description
User attributes are defined in the trim.uat file and represent bit
values corresponding to their position in the file. Typically these
bit values are defined in trim.h.
Example
Counts the number of primary key fields in the window:
{
for (p.af = field_count()-1;p.af>=0;p.af--)
if (field_attr() & uat_prikey) cnt_prikey++;
}