This function implements a limited version of the TI Extended Basic's DISPLAY AT command. It displays the text inside the string value at the specific row and column. The size parameter indicates how many spaces to add to the right of the text after displaying the string.
DISPLAY_AT only accepts string values. When displaying numeric values, first convert them to string using the STR$ function. If size 0 is specified, the function is treated as if no size was included.
When this function is used the string value is displayed and the rest of the row is blanked up to tab column 28 (hchar, vchar column 30). String values longer than the size parameter are truncated. If size is larger than the number of positions remaining in the row (after displayed text), only the rest of the row is blanked. There is no overflow of text past tab column 28. Extra text is truncated.
DISPLAY_AT(R,C,"",S) :Prints a line of S spaces
DISPLAY_AT(R,C,"XXXXX",S) :Prints text and adds S amount of blank spaces after text
DISPLAY_AT(R,C,"XXXXX",0) :Prints text and erases the remainder of the line
DISPLAY_AT(R,C,"XXXXX",-1) :Prints text and leaves remainder of the line intact
|