The macro command screenDesc.AddAttrib enables you to wait for a screen with a specific screen attribute at a specific position.
The field plane represents the field positions and their attributes in the presentation space. This plane is meaningful only for field-formatted presentation spaces. (For example, VT connections are not formatted).
This plane is a sparse array of field attribute values. All values in this plane are binary zero except for where field attribute characters are present in the presentation space. At those positions, the values are the attributes of the field which starts at that location. The length of a field is the linear distance between the field attribute position and the next field attribute in the presentation space, not including the attribute position itself.
The value of the field attribute positions are as shown in the following tables.
Note: Attribute values are different for different types of connections.
(Bit 0 is least significant bit.)Bit Position | Meaning | |
---|---|---|
7 | Always "1" | |
6 | Always "1" | |
5 | 0 | Unprotected |
1 | Protected | |
4 | 0 | Alphanumeric data |
1 | Numeric data only | |
3, 2 | 0, 0 | Normal intensity, not pen detectable |
0, 1 | Normal intensity, pen detectable | |
1, 0 | High intensity, pen detectable | |
1, 1 | Non-display, not pen detectable | |
1 | Reserved | |
0 | 0 | Field has not been modified |
1 | Unprotected field has been modified |
Bit Position | Meaning | |
---|---|---|
7 | Always "1" | |
6 | 0 | Nondisplay |
1 | Display | |
5 | 0 | Unprotected |
1 | Protected | |
4 | 0 | Normal intensity |
1 | High intensity | |
3, 2, 1 | 0, 0, 0 | Alphanumeric data |
0, 0, 1 | Alphabetic only | |
0, 1, 0 | Numeric shift | |
0, 1, 1 | Numeric data plus numeric specials | |
1, 0, 1 | Numeric only | |
1, 1, 0 | Magnetic stripe reading device data only | |
1, 1, 1 | Signed numeric only | |
0 | 0 | Field has not been modified |
1 | Unprotected field has been modified |