|
|
SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Intrinsics Used with Standard MPE
I/OATTRLIST |
|
ATTRLIST returns the locations of attribute characters in the internal screen image.
The ATTRLIST intrinsic returns an array containing the locations of the attribute characters within any subsection or all of the internal screen image. The ATTRLIST intrinsic is intended to complement the READSCREEN intrinsic. After receiving a subsection of the internal screen image from READSCREEN, you can call ATTRLIST to find out where attribute characters are located, and thus where fields are located, within the subsection. The offset and subscreensize parameters define the screen subsection in the same manner for ATTRLIST as the parameters offset and maxinbuflen do for READSCREEN. The array offsetlist is filled with all of the locations of attribute characters within the subsection, up to maxlistlen. These locations are expressed as offsets into the full screen image (not the screen subsection). The fieldnum parameter returns the number of the field associated with the first attribute character within the screen subsection. The actlistlen parameter contains the actual number of attribute characters in the screen subsection. This number will reflect the number of elements in offsetlist only if the offsetlist array is large enough to hold all the locations. If you specified a maxlistlen value smaller than the actual number of attribute characters in the screen subsection, the actlistlen value will be larger than the number of elements in the offsetlist parameter. If you have called the SCREENATTR intrinsic and determined the number of fields in an internal screen image (from the numfields parameter), you can locate the attribute characters within any area or within all of the internal screen image. You do not need to use the ATTRLIST intrinsic if you call the READFIELD intrinsic and work with field numbers instead of locations. However, you must use the ATTRLIST intrinsic if you have used the READSCREEN intrinsic, because you must be able to distinguish attribute characters from data characters. Use the ATTRLIST intrinsic in non-transparent mode. CALL "CATTRLIST" USING TERMINALID OFFSET SUBSCREENSIZE MAXLISTLEN FIELDNUM OFFSETLIST ACTLISTLEN RESULT. (on MPE V and in compatibility mode on MPE XL) CALL INTRINSIC "ATTRLIST" USING TERMINALID OFFSET SUBSCREENSIZE MAXLISTLEN FIELDNUM OFFSETLIST ACTLISTLEN RESULT. (in native mode on MPE XL) All parameters are numeric data items except OFFSETLIST, which is an integer table. CALL ATTRLIST (TERMINALID, OFFSET, SUBSCREENSIZE, MAXLISTLEN, FIELDNUM, OFFSETLIST, ACTLISTLEN, RESULT) All parameters are numeric data items except OFFSETLIST, which is an integer array. CALL BATTRLIST (T, O1, L1, L2, N, O2(*), L3, R) (on MPE V and in compatibility mode on MPE XL) CALL ATTRLIST (T, O1, L1, L2, N, O2(*), L3, R) (in native mode on MPE XL) All parameters are integer variables except O2(*), which is an integer array. ATTRLIST (TERMINALID, OFFSET, SUBSCREENSIZE, MAXLISTLEN, FIELDNUM, OFFSETLIST, ACTLISTLEN, RESULT) All parameters are integer variables except OFFSETLIST, which is an integer array. ATTRLIST (TERMINALID, OFFSET, SUBSCREENSIZE, MAXLISTLEN, FIELDNUM, OFFSETLIST, ACTLISTLEN, RESULT); All parameters are short integer variables except OFFSETLIST, which is an array of short integer variables. ATTRLIST (&TERMINALID, &OFFSET, &SUBSCREENSIZE, &MAXLISTLEN, &FIELDNUM, OFFSETLIST, &ACTLISTLEN, &RESULT); All parameters are of type short, except OFFSETLIST, which is an array of 2 short integer variables (a pointer to a short). Following are excerpts from a Pascal program that calls SNA IMF intrinsics. For examples of complete Pascal programs in non-transparent and transparent modes, see Appendix F “Sample Programs”
|
|