home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Attribute
-
- * to return the screen attribute byte for any given row and columns
- * position to an already displayed screen.
-
- PARAMETERS _attrow, _attcol
-
- IF PCOUNT() != 2
- RETURN(0)
- ENDIF
- IF TYPE("_attrow") + TYPE("_attcol") != "NN"
- RETURN(0)
- ENDIF
-
- * return a line of text from the given row position
- * For the Autumn 86 release, this would be how
- *
- * PRIVATE _attscreen, _attchar
- *
- * _attscreen = ""
- *
- * SAVE SCREN TO _attscreen
- * _attscreen = SUBSTR(_attscreen, (_attrow * 160) + 1, 160)
- * now give the attribute byte from the given column number
- * _attchar = SUBSTR(_attscreen, ((_attcol * 2) + 2), 1)
- *
- * RELEASE _attscreen
- *
- * RETURN(ASC(_attchar))
-
- * Now, for the Summer '87, we have this:
-
- RETURN(ASC(SUBSTR(SAVESCREEN(_attrow, _attcol, _attrow, _attcol), 2, 1)))
-
- * End of File