[7.8] Return Program Results To Home Screen - Texas Instruments TI-89 Tip List

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

2. Call the 'exit' routine directly, without expr(). This prevents me from using an application
launcher I wrote to manage my apps.
3. Archive most of the exit program, but put the final stop instruction in its own, unarchived
program which is called by the exit program. While this seems like an acceptable work-around,
it should not be necessary.
4. Call the 'exit' routine as usual, but use return instead of stop to terminate program operation.

[7.8] Return program results to home screen

A TI-89/TI-92 Plus function can return a result to the command line, but a program usually cannot.
However, there are two methods to get around this limitation.
Method 1: Samuel Stearly's copyto_h():
Samuel Stearly has written an ASM program that copies program results to the home screen. For the
latest version, search for copyto_h on ticalc.org. The call syntax for copyto_h() is
copyto_h([name1[,name2]])
name1 and name2 are variable name strings. If no arguments are passed, copyto_h() displays the call
syntax in the status line. If name1 is passed, the contents of name1 are copied to the entry and
answer areas of the home screen. If name1 and name2 are passed, the contents of name1 and name2
are copied to the entry and answer areas, respectively. This feature provides a very convenient way to
label multiple results. name1 and name2 may include a folder specification. This simple test routine
demonstrates the usage:
t()
Prgm
local v1,v2,v3,v4,v5
1.224→v1
"Label 1"→v2
2.222→v3
"expression"→v4
a+b/c→v5
util\copyto_h("v1")
util\copyto_h("v2","v3")
util\copyto_h("v4","v5")
EndPrgm
For this example, copyto_h() is installed in the util\ folder on the calculator, so the function calls specify
that folder. After running t(), the home screen looks like this:
7 - 8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents