+ Reply to Thread
Results 1 to 6 of 6

Thread: TI-BASIC Tutorial - Displaying Text

  1. #1
    exfyre is offline Newbie
    Join Date
    Feb 2008
    Posts
    16
    Rep Power
    16

    TI-BASIC Tutorial - Displaying Text

    Introduction
    TI-BASIC is the built-in program language that comes with the TI-83/84+ calculators
    Optional Resources
    1. TI-83 Plus Flash Debugger -> for running programs
    2. TI Graph link -> For writing & saving programs
    -or-
    a TI-83/84 Plus calculator -> writes and runs programs


    Displaying Text
    There are three different commands for text display. These are:
    Code:
    :Disp
    :Output(
    :Text(
    Each of these has its different uses. Here is some detailed information on each.
    Note: It is often common practice to leave off the closing parenthesis of functions like Output( and Text( as this saves one byte of RAM.
    ":Disp"
    Code:
    Disp expr[, expr, expr...]
    Always starts at the next line.
    Displays the value to the homescreen.
    Can display any type of value.
    Does not wrap text to the next line.
    Each new argument is written to a new line
    ":Output("
    Code:
    Output(y, x, expr
    top left is 1,1
    bottom right is 8, 16
    Displays the value to the homescreen.
    Can display any type of numerical or string value.
    Wraps text to the next line.
    ":Text("
    Code:
    Text(y, x, expr[,expr, expr...]
    top left is 0,0
    bottom right is 94, 62
    Displays the value to the homescreen.
    Can display any type of numerical or string value.
    Returns an error if x or y are off the screen
    Classic "Hello World" Programs using each command:
    Code:
    :ClrHome
    :Disp "Hello World"
    Code:
    :ClrHome
    :Output(1,1,"Hello World"
    Code:
    :ClrDraw
    :Text(0,0,"Hello World"
    If you'll notice, in that last code snippet, the command ClrDraw was used instead of ClrHome. This is because Text( uses the graph screen instead of the homescreen to display values.

    NOTE: Most Text( characters are between 3 and 5 pixels wide and 4 pixels in height. All Disp and Output( characters take up one 'block'. The homescreen is about 16 blocks wide by 8 blocks in length. Similar ratio as the below series of lines.
    ||||||||||||||||||||||
    ||||||||||||||||||||||
    ||||||||||||||||||||||
    ||||||||||||||||||||||
    ||||||||||||||||||||||


    Bit o' Vars
    Before I start my next tutorial, some might want to experiment a bit. If you've never used a TI calculator, there are some things you need to know.
    For one, there are only 27 storable variables for single numeric values, A through Z and Theta. There are only 10 string variables and 10 Matrix variables and 10 picture variables. You cannot create your own variables. You can, however, create as many lists as you want with their own unique names. Lists are arrays of numbers (numbers only).

    Examples:
    Code:
    :ClrHome
    :0→X
    :Disp X
    :100→X
    :Output(1,2,X
    The previous code will clear the screen, store 0 to X, display X, store 100 to X, and then output X at the location 1,2
    The result looks like this:
    Code:
    0100
    Last edited by exfyre; 08-28-2009 at 06:52 PM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: TI-BASIC Tutorial - Displaying Text

    The first of its kind on here! Very cool, I still have my TI from school. +rep

  4. #3
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Posts
    9,547
    Blog Entries
    5
    Rep Power
    98

    Re: TI-BASIC Tutorial - Displaying Text

    I planned to create 5 TI tutorials tomorrow, is that just a coincidence?

    EDIT: Actually today since it's past midnight here

  5. #4
    Jordan Guest

    Re: TI-BASIC Tutorial - Displaying Text

    Has to be, looking forward to them though.

  6. #5
    exfyre is offline Newbie
    Join Date
    Feb 2008
    Posts
    16
    Rep Power
    16

    Re: TI-BASIC Tutorial - Displaying Text

    lemme know what your gonna put in your tutorials and ill see if i can try and cover other things than what you will be covering.

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: TI-BASIC Tutorial - Displaying Text

    This brings back the good old days: programming on my TI-81 (in 1990). Maybe I should put up some programs for the HP 48 GX. Dueling calculator codes!
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Visual Basic 2010 is displaying uneccesary amounts of code
    By prettychill in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-03-2011, 07:31 AM
  2. TI-BASIC Tutorial - Graphics
    By exfyre in forum Tutorials
    Replies: 4
    Last Post: 08-31-2009, 05:59 PM
  3. TI-BASIC Tutorial - Loops
    By exfyre in forum Tutorials
    Replies: 2
    Last Post: 08-29-2009, 06:42 AM
  4. TI BASIC Tutorial - Conditions
    By exfyre in forum Tutorials
    Replies: 4
    Last Post: 08-28-2009, 07:11 PM
  5. Displaying a text grid
    By The Midnighter in forum C and C++
    Replies: 8
    Last Post: 11-25-2007, 03:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts