TI99 Environment

# ACCEPT_AT

Syntax

string-variable=ACCEPT_AT(row,column,type,prompt-string,size)

Description

This function pauses program execution to accept user input. The input prompt can be placed at row 1-24, column 1-28. prompt-string can be used to include an informational message with instructions prompting users to enter specific data. The type string parameter can have the values "", "U", "D", or "N" used as follows: string-variable=ACCEPT_AT(row,col,"", prompt$,size) - Accepts any string of length size, size 0 means no size limit (lenght of line).(IMPLEMENTED) string-variable=ACCEPT_AT(row,col,"U", prompt$,size) - Accepts Uppercase Alphabetic chars of length size. (NOT IMPLEMENTED) string-variable=ACCEPT_AT(row,col,"D", prompt$,size) - Accepts Digits 0-9 only of length size. (NOT IMPLEMENTED) string-variable=ACCEPT_AT(row,col,"N", prompt$,size) - Accepts Digits 0-9, ".", "+", "-", and "E" of length size.(NOT IMPLEMENTED) The return value string-variable contains the user input after the user hits the -Enter- key. ACCEPT_AT always returns a string value. To convert the text into a numeric enty, use the VAL function: number=VAL(ACCEPT_AT("...")) User Input: The function accepts alphanumeric characters, space and backspace. To include leading spaces in the input text, user must enclose text between quotes. Example: " my text with 5 leading spaces".

Example Code

    `Accept_At Test
    randomize hitimer()
    do
     aarow = rnd(17)+3 : aacol = rnd(10)+1
     a$ = ACCEPT_AT(aarow,aacol,"","Name?:",0)
     display_at(aarow+1,1,"Hello "+a$,0)
     tiwaitkey() : call_clear()
    loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020