LOF

LOF(buffer)
Return the highest-numbered record of the buffer you specify.

FOR R = 1 TO LOF(1)

RTS

Return to Tandy Color Computer or Disk Extended Color BASIC