TI99 Environment

DISPLAY_AT


Syntax

DISPLAY_AT(row,column,string,size)

Description

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

  Example Code
`Scrolling Message
do
   call_clear()
   y = 12 : x = 1 : t = 1   
   a$=rpt$(" ",28) + accept_at(y,x,"","Message:",0)
   a = fast len(a$)
   randomize hitimer() 
   y = rnd(23)+1
   do      
      call_clear()
      DISPLAY_AT(y,x,mid$(a$,t,28),0)
      tiwait(100)
      inc t
      if t= a + 2 then t=1 : y = rnd(23)+1
      if inkey$()<> "" then exit
   loop
loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020