TI99 Environment

CALL_CHARPAT()


Syntax

string-variable = CALL_CHARPAT(character-code)

Description

The CHARPAT function returns a string-variable with the 16-character pattern identifier for the specific character-code. You can use this character pattern with the CALL_CHAR function to create copy of a specific ASCII character graphic or save the character pattern to restore a change to a character.

Valid function values:

character-code is an integer value between 32 and endchar.
Note:The value endchar is a reserved constant set at the beginning of the TI-99E program during initialization to specify how many characters are available to customize.

Return value:
string-variable is a 16-character hexadecimal representation of the character-code graphic pattern.


  Example Code
randomize timer()
call_screen(2)
for i = 0 to 5
    call_sprite(i + 1,65,rnd(13)+3,16 + i * 32,256,0,-rnd(50))
next i
do
   tiwaitkey()
   a$ = CALL_CHARPAT(65)                	` Save original pattern for letter "A"
   call_char(65,"ffffffffffffffff")        	` Redefine "A" with block character graphic
   tiwaitkey()
   call_char(65,a$)       			` Load back original pattern for "A"   
loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020