TI99 Environment

# SEG$

Syntax

string-variable = SEG$(string,position,length)

Description

The SEG$ function returns the substring of string starting at position and with the desired length. This is the TI-99 equivalent of MID$.

Example Code

    `Scrolling Message
    x = 12 : y = 1 : t = 1
    a$=rpt$(" ",28)+"This message scrolls across the screen.  Hit Esc to end."
    a = fast len(a$)
    do
       display_at(x,y,SEG$(a$,t,28),0)
       tiwait(100)
       inc t
       if t= a + 1 then t=1
    loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020